From 43f4d5c3cd8838ae87660813abc999f85612a33f Mon Sep 17 00:00:00 2001 From: Kim Hagen Date: Wed, 7 Jul 2021 05:03:38 -0500 Subject: T3664: Eliminate obsolete build flavours --- Makefile | 122 ------------ scripts/build-GCE-image | 165 ---------------- scripts/build-azure-image | 151 --------------- scripts/build-hyperv-image | 32 ---- scripts/build-oracle-image | 154 --------------- scripts/build-qemu-image | 34 ---- scripts/build-vmware-image | 210 -------------------- scripts/packer-scripts/vmware.sh | 29 --- scripts/packer.json | 61 ------ scripts/template.ovf | 223 ---------------------- scripts/vhd.py | 90 --------- tools/armada-388-clearfog.dtb | Bin 19429 -> 0 bytes tools/cloud-init/99-debug-user.chroot | 17 -- tools/cloud-init/99-disable-networking.chroot | 3 - tools/cloud-init/GCE/90_dpkg.cfg | 2 - tools/cloud-init/GCE/config.boot.default | 31 --- tools/cloud-init/GCE/config.boot.default-debug | 42 ---- tools/cloud-init/OCI/90_dpkg.cfg | 2 - tools/cloud-init/OCI/config.boot.default | 40 ---- tools/cloud-init/PACKET/90_dpkg.cfg | 8 - tools/cloud-init/PACKET/config.boot.default | 31 --- tools/cloud-init/PACKET/config.boot.default-debug | 42 ---- tools/cloud-init/azure/99-walinuxagent.chroot | 18 -- tools/cloud-init/azure/config.boot.default | 31 --- tools/cloud-init/azure/vyos-azure.list.chroot | 2 - tools/cloud-init/cloud-init.list.chroot | 2 - tools/cloud-init/openstack/90_dpkg.cfg | 7 - tools/cloud-init/openstack/config.boot.default | 40 ---- tools/cloud-init/vmware/90_dpkg.cfg | 3 - tools/cloud-init/vmware/config.boot.default | 30 --- tools/run-qemu-image.sh | 16 -- tools/u-boot-spl.kwb | Bin 557788 -> 0 bytes 32 files changed, 1638 deletions(-) delete mode 100755 scripts/build-GCE-image delete mode 100755 scripts/build-azure-image delete mode 100755 scripts/build-hyperv-image delete mode 100755 scripts/build-oracle-image delete mode 100755 scripts/build-qemu-image delete mode 100755 scripts/build-vmware-image delete mode 100644 scripts/packer-scripts/vmware.sh delete mode 100644 scripts/packer.json delete mode 100644 scripts/template.ovf delete mode 100755 scripts/vhd.py delete mode 100755 tools/armada-388-clearfog.dtb delete mode 100755 tools/cloud-init/99-debug-user.chroot delete mode 100755 tools/cloud-init/99-disable-networking.chroot delete mode 100644 tools/cloud-init/GCE/90_dpkg.cfg delete mode 100644 tools/cloud-init/GCE/config.boot.default delete mode 100644 tools/cloud-init/GCE/config.boot.default-debug delete mode 100644 tools/cloud-init/OCI/90_dpkg.cfg delete mode 100644 tools/cloud-init/OCI/config.boot.default delete mode 100644 tools/cloud-init/PACKET/90_dpkg.cfg delete mode 100644 tools/cloud-init/PACKET/config.boot.default delete mode 100644 tools/cloud-init/PACKET/config.boot.default-debug delete mode 100755 tools/cloud-init/azure/99-walinuxagent.chroot delete mode 100644 tools/cloud-init/azure/config.boot.default delete mode 100644 tools/cloud-init/azure/vyos-azure.list.chroot delete mode 100644 tools/cloud-init/cloud-init.list.chroot delete mode 100644 tools/cloud-init/openstack/90_dpkg.cfg delete mode 100644 tools/cloud-init/openstack/config.boot.default delete mode 100644 tools/cloud-init/vmware/90_dpkg.cfg delete mode 100644 tools/cloud-init/vmware/config.boot.default delete mode 100755 tools/run-qemu-image.sh delete mode 100644 tools/u-boot-spl.kwb diff --git a/Makefile b/Makefile index 59f5fb34..0b672364 100644 --- a/Makefile +++ b/Makefile @@ -44,13 +44,6 @@ prepare-package-env: @scripts/pbuilder-config @scripts/pbuilder-setup -.PHONY: qemu -.ONESHELL: -qemu: - @set -e - @scripts/check-vm-build-env - @scripts/build-qemu-image - .PHONY: vagrant-libvirt .ONESHELL: vagrant-libvirt: @@ -58,18 +51,6 @@ vagrant-libvirt: @scripts/check-vm-build-env @scripts/build-vagrant-libvirt-box -.PHONY: vmware -.ONESHELL: -vmware: clean prepare - @set -e - @echo "It's not like I'm building this specially for you or anything!" - mkdir -p build/config/includes.chroot/etc/cloud/cloud.cfg.d - cp tools/cloud-init/vmware/90_dpkg.cfg build/config/includes.chroot/etc/cloud/cloud.cfg.d/ - cp tools/cloud-init/cloud-init.list.chroot build/config/package-lists/ - cp -f tools/cloud-init/vmware/config.boot.default build/config/includes.chroot/opt/vyatta/etc/ - cd $(build_dir) - @../scripts/build-vmware-image - .PHONY: hyperv .ONESHELL: hyperv: @@ -77,51 +58,6 @@ hyperv: @scripts/check-vm-build-env @scripts/build-hyperv-image -.PHONY: clearfog -.ONESHELL: -clearfog: clean prepare - @set -e - @echo "It's not like I'm building this specially for you or anything!" - cd $(build_dir) - @../scripts/build-clearfog-image - -.PHONY: azure -.ONESHELL: -azure: clean prepare - @set -e - @echo "It's not like I'm building this specially for you or anything!" - cp tools/cloud-init/azure/99-walinuxagent.chroot build/config/hooks/live/ - cp tools/cloud-init/azure/vyos-azure.list.chroot build/config/package-lists/ - cp tools/cloud-init/cloud-init.list.chroot build/config/package-lists/ - cp -f tools/cloud-init/azure/config.boot.default build/config/includes.chroot/opt/vyatta/etc/ - cd $(build_dir) - @../scripts/build-azure-image - -.PHONY: GCE -.ONESHELL: -GCE: clean prepare - @set -e - @echo "It's not like I'm building this specially for you or anything!" - mkdir -p build/config/includes.chroot/etc/cloud/cloud.cfg.d - cp tools/cloud-init/GCE/90_dpkg.cfg build/config/includes.chroot/etc/cloud/cloud.cfg.d/ - cp tools/cloud-init/cloud-init.list.chroot build/config/package-lists/ - cp -f tools/cloud-init/GCE/config.boot.default build/config/includes.chroot/opt/vyatta/etc/ - cd $(build_dir) - @../scripts/build-GCE-image - -.PHONY: GCE-debug -.ONESHELL: -GCE-debug: clean prepare - @set -e - @echo "It's not like I'm building this specially for you or anything!" - mkdir -p build/config/includes.chroot/etc/cloud/cloud.cfg.d - cp tools/cloud-init/99-debug-user.chroot build/config/hooks/live/ - cp tools/cloud-init/GCE/90_dpkg.cfg build/config/includes.chroot/etc/cloud/cloud.cfg.d/ - cp tools/cloud-init/cloud-init.list.chroot build/config/package-lists/ - cp -f tools/cloud-init/GCE/config.boot.default-debug build/config/includes.chroot/opt/vyatta/etc/config.boot.default - cd $(build_dir) - @../scripts/build-GCE-image - .PHONY: AWS .ONESHELL: AWS: clean prepare @@ -136,63 +72,6 @@ AWS: clean prepare cd .. @scripts/copy-image -.PHONY: openstack -.ONESHELL: -openstack: clean prepare - @set -e - @echo "It's not like I'm building this specially for you or anything!" - mkdir -p build/config/includes.chroot/etc/cloud/cloud.cfg.d - cp tools/cloud-init/openstack/90_dpkg.cfg build/config/includes.chroot/etc/cloud/cloud.cfg.d/ - cp tools/cloud-init/cloud-init.list.chroot build/config/package-lists/ - cp -f tools/cloud-init/openstack/config.boot.default build/config/includes.chroot/opt/vyatta/etc/ - cd $(build_dir) - lb build 2>&1 | tee build.log - cd .. - @scripts/copy-image - -.PHONY: oracle -.ONESHELL: -oracle: clean prepare - @set -e - @echo "It's not like I'm building this specially for you or anything!" - mkdir -p build/config/includes.chroot/etc/cloud/cloud.cfg.d - cp tools/cloud-init/OCI/90_dpkg.cfg build/config/includes.chroot/etc/cloud/cloud.cfg.d/ - cp tools/cloud-init/cloud-init.list.chroot build/config/package-lists/ - cp -f tools/cloud-init/OCI/config.boot.default build/config/includes.chroot/opt/vyatta/etc/ - cd $(build_dir) - @../scripts/build-oracle-image - -.PHONY: PACKET -.ONESHELL: -PACKET: clean prepare - @set -e - @echo "It's not like I'm building this specially for you or anything!" - mkdir -p build/config/includes.chroot/etc/cloud/cloud.cfg.d - cp tools/cloud-init/99-disable-networking.chroot build/config/hooks/live/ - cp tools/cloud-init/PACKET/90_dpkg.cfg build/config/includes.chroot/etc/cloud/cloud.cfg.d/ - cp tools/cloud-init/cloud-init.list.chroot build/config/package-lists/ - cp -f tools/cloud-init/PACKET/config.boot.default build/config/includes.chroot/opt/vyatta/etc/ - cd $(build_dir) - lb build 2>&1 | tee build.log - cd .. - @scripts/copy-image - -.PHONY: PACKET-debug -.ONESHELL: -PACKET-debug: clean prepare - @set -e - @echo "It's not like I'm building this specially for you or anything!" - mkdir -p build/config/includes.chroot/etc/cloud/cloud.cfg.d - cp tools/cloud-init/99-debug-user.chroot build/config/hooks/live/ - cp tools/cloud-init/99-disable-networking.chroot build/config/hooks/live/ - cp tools/cloud-init/PACKET/90_dpkg.cfg build/config/includes.chroot/etc/cloud/cloud.cfg.d/ - cp tools/cloud-init/cloud-init.list.chroot build/config/package-lists/ - cp -f tools/cloud-init/PACKET/config.boot.default-debug build/config/includes.chroot/opt/vyatta/etc/config.boot.default - cd $(build_dir) - lb build 2>&1 | tee build.log - cd .. - @scripts/copy-image - .PHONY: vep4600 .ONESHELL: vep4600: check_build_config clean prepare @@ -269,7 +148,6 @@ clean: rm -f *.mf rm -f *.ovf rm -f *.ova - rm -f *.vmdk .PHONY: purge purge: diff --git a/scripts/build-GCE-image b/scripts/build-GCE-image deleted file mode 100755 index f9273874..00000000 --- a/scripts/build-GCE-image +++ /dev/null @@ -1,165 +0,0 @@ -#!/bin/sh -# -# Copyright (C) 2018 VyOS maintainers and contributors -# -# This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 or later as published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -# -# File: build-GCE-image -# Purpose: -# Build VyOS image for Google cloud. - -lb bootstrap - -lb chroot -lb installer -lb binary_chroot -lb chroot_devpts install -lb chroot_proc install -lb chroot_selinuxfs install -lb chroot_sysfs install -lb chroot_hosts install -lb chroot_resolv install -lb chroot_hostname install -lb chroot_sysv-rc install -lb chroot_upstart install -lb chroot_apt install-binary -lb chroot_archives chroot install -lb binary_rootfs -lb binary_manifest -lb binary_package-lists -lb binary_linux-image -lb binary_memtest -lb binary_grub -lb binary_grub2 -lb binary_syslinux -lb binary_disk -lb binary_loadlin -lb binary_win32-loader -lb binary_includes -lb binary_hooks -lb binary_checksums - -# get vyos build version -version=$(cat version) -dateymd=$(date +%Y%m%d) - -###################################### -### Prepare the HDD (format, ext.) ### -###################################### -PARTED=/sbin/parted -OUTPUT=disk.raw -OUTPUTGZ=VyOS-"$dateymd".tar.gz -IMAGE_SIZE=10 -qemu-img create -f raw ${OUTPUT} ${IMAGE_SIZE}G - -LOOPNAME=`losetup -f` -LOOPMINOR=${LOOPNAME//[^0-9]} -if [ ! -e $LOOPNAME ]; then - mknod $LOOPNAME b 7 $LOOPMINOR -fi - -${PARTED} -s ${OUTPUT} mktable msdos -${PARTED} -s -a optimal ${OUTPUT} mkpart primary ext4 1Mi 100% -${PARTED} -s ${OUTPUT} set 1 boot on -RESULT_KPARTX=`kpartx -asv ${OUTPUT} 2>&1` - -if echo "${RESULT_KPARTX}" | grep "^add map" ; then - LOOP_DEVICE=$(echo ${RESULT_KPARTX} | cut -d" " -f3) - LOOPRAW_DEVICE=${LOOP_DEVICE%p*} - echo "kpartx mounted using: ${LOOP_DEVICE} via ${LOOPRAW_DEVICE}" -else - echo "It seems kpartx didn't mount the image correctly: exiting." - exit 1 -fi - -cleanup(){ - error=$? - [ ! -d "${MOUNT_DIR}" ] && return - if [ "$error" -gt 0 ]; then - echo - echo "Error $error" - else - echo "Finished." - fi - - set +e - - sync - umount -l ${MOUNT_DIR} - rmdir ${MOUNT_DIR} - - umount devpts-live - umount proc-live - umount sysfs-live - - dmsetup remove --deferred ${LOOP_DEVICE} - losetup -d /dev/${LOOPRAW_DEVICE} - exit $error -} -trap "cleanup" EXIT TERM INT - -mkfs.ext4 /dev/mapper/${LOOP_DEVICE} -L persistence -UUID=$(blkid -o value -s UUID /dev/mapper/${LOOP_DEVICE}) - -# No fsck because of X days without checks -tune2fs -i 0 /dev/mapper/${LOOP_DEVICE} - -MOUNT_DIR=`mktemp -d -t build-debimg.XXXXXX` -mount /dev/mapper/${LOOP_DEVICE} ${MOUNT_DIR} - -######################## -### Setting-up files ### -######################## -mkdir -p ${MOUNT_DIR}/boot/grub -mkdir -p ${MOUNT_DIR}/boot/"$version"/rw - -echo "/ union" > ${MOUNT_DIR}/persistence.conf -cp binary/live/filesystem.squashfs ${MOUNT_DIR}/boot/"$version"/"$version.squashfs" -cp binary/live/initrd.img ${MOUNT_DIR}/boot/"$version"/initrd.img -cp binary/live/vmlinuz ${MOUNT_DIR}/boot/"$version"/vmlinuz - -######################## -### Create grub menu ### -######################## -cat > ${MOUNT_DIR}/boot/grub/grub.cfg << EOF -set timeout=5 -set default=0 - -serial --speed=38400 --unit=0 --word=8 --parity=no --stop=1 -terminal_input serial -terminal_output serial - -menuentry "VyOS $version (Serial console)" { - linux /boot/"$version"/vmlinuz boot=live vyos-union=/boot/"$version" console=tty0 console=ttyS0,38400n8d earlyprintk=ttyS0,38400 consoleblank=0 systemd.show_status=true - initrd /boot/"$version"/initrd.img -} - -menuentry "Lost password change $version (Serial console)" { - linux /boot/"$version"/vmlinuz boot=live vyos-union=/boot/"$version" console=tty0 console=ttyS0,38400n8d earlyprintk=ttyS0,38400 consoleblank=0 systemd.show_status=true init=/opt/vyatta/sbin/standalone_root_pw_reset - initrd /boot/"$version"/initrd.img -} -EOF - - -############################# -### Setting-up bootloader ### -############################# -grub-install --boot-directory ${MOUNT_DIR}/boot --force --no-floppy --skip-fs-probe /dev/${LOOPRAW_DEVICE} - -################### -### HOOK SCRIPT ### -################### - -fstrim ${MOUNT_DIR} -umount ${MOUNT_DIR} && { - tar -Sczf ${OUTPUTGZ} ${OUTPUT} - mount /dev/mapper/${LOOP_DEVICE} ${MOUNT_DIR} -} diff --git a/scripts/build-azure-image b/scripts/build-azure-image deleted file mode 100755 index 48590cb4..00000000 --- a/scripts/build-azure-image +++ /dev/null @@ -1,151 +0,0 @@ -#!/bin/sh -# -# Copyright (C) 2018 VyOS maintainers and contributors -# -# This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 or later as published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -# -# File: build-azure-image -# Purpose: -# Build VyOS image for Azure. - -lb bootstrap - -lb chroot -lb installer -lb binary_chroot -lb chroot_devpts install -lb chroot_proc install -lb chroot_selinuxfs install -lb chroot_sysfs install -lb chroot_hosts install -lb chroot_resolv install -lb chroot_hostname install -lb chroot_sysv-rc install -lb chroot_upstart install -lb chroot_apt install-binary -lb chroot_archives chroot install -lb binary_rootfs -lb binary_manifest -lb binary_package-lists -lb binary_linux-image -lb binary_memtest -lb binary_grub -lb binary_grub2 -lb binary_syslinux -lb binary_disk -lb binary_loadlin -lb binary_win32-loader -lb binary_includes -lb binary_hooks -lb binary_checksums - -# get vyos build version -version=$(cat version) -dateymd=$(date +%Y%m%d) - -###################################### -### Prepare the HDD (format, ext.) ### -###################################### -PARTED=/sbin/parted -OUTPUT=VyOS-"$dateymd".vhd -IMAGE_SIZE=10 -qemu-img create ${OUTPUT} ${IMAGE_SIZE}G - -${PARTED} -s ${OUTPUT} mktable msdos -${PARTED} -s -a optimal ${OUTPUT} mkpart primary ext4 1Mi 100% -${PARTED} -s ${OUTPUT} set 1 boot on -RESULT_KPARTX=`kpartx -asv ${OUTPUT} 2>&1` - -if echo "${RESULT_KPARTX}" | grep "^add map" ; then - LOOP_DEVICE=$(echo ${RESULT_KPARTX} | cut -d" " -f3) - LOOPRAW_DEVICE=${LOOP_DEVICE%p*} - echo "kpartx mounted using: ${LOOP_DEVICE} via ${LOOPRAW_DEVICE}" -else - echo "It seems kpartx didn't mount the image correctly: exiting." - exit 1 -fi - -cleanup(){ - error=$? - [ ! -d "${MOUNT_DIR}" ] && return - if [ "$error" -gt 0 ]; then - echo - echo "Error $error" - else - echo "Finished." - fi - - set +e - - sync - umount -l ${MOUNT_DIR} - rmdir ${MOUNT_DIR} - - umount devpts-live - umount proc-live - umount sysfs-live - - dmsetup remove --deferred ${LOOP_DEVICE} - losetup -d /dev/${LOOPRAW_DEVICE} - exit $error -} -trap "cleanup" EXIT TERM INT - -mkfs.ext4 /dev/mapper/${LOOP_DEVICE} -L persistence -UUID=$(blkid -o value -s UUID /dev/mapper/${LOOP_DEVICE}) - -# No fsck because of X days without checks -tune2fs -i 0 /dev/mapper/${LOOP_DEVICE} - -MOUNT_DIR=`mktemp -d -t build-debimg.XXXXXX` -mount /dev/mapper/${LOOP_DEVICE} ${MOUNT_DIR} - -######################## -### Setting-up files ### -######################## -mkdir -p ${MOUNT_DIR}/boot/grub -mkdir -p ${MOUNT_DIR}/boot/"$version"/rw - -echo "/ union" > ${MOUNT_DIR}/persistence.conf -cp binary/live/filesystem.squashfs ${MOUNT_DIR}/boot/"$version"/"$version.squashfs" -cp binary/live/initrd.img ${MOUNT_DIR}/boot/"$version"/initrd.img -cp binary/live/vmlinuz ${MOUNT_DIR}/boot/"$version"/vmlinuz - -######################## -### Create grub menu ### -######################## -cat > ${MOUNT_DIR}/boot/grub/grub.cfg << EOF -set timeout=5 -set default=0 - -menuentry "VyOS $version (Serial console)" { - linux /boot/"$version"/vmlinuz boot=live quiet vyos-union=/boot/"$version" console=tty0 console=ttyS0,115200n8 earlyprintk=ttyS0,115200 consoleblank=0 systemd.show_status=true - initrd /boot/"$version"/initrd.img -} - -menuentry "Lost password change $version (Serial console)" { - linux /boot/"$version"/vmlinuz boot=live quiet vyos-union=/boot/"$version" console=tty0 console=ttyS0,115200n8 earlyprintk=ttyS0,115200 consoleblank=0 systemd.show_status=true init=/opt/vyatta/sbin/standalone_root_pw_reset - initrd /boot/"$version"/initrd.img -} -EOF - - -############################# -### Setting-up bootloader ### -############################# -grub-install --boot-directory ${MOUNT_DIR}/boot --force --no-floppy --skip-fs-probe /dev/${LOOPRAW_DEVICE} - -################### -### HOOK SCRIPT ### -################### -fstrim ${MOUNT_DIR} - -../scripts/vhd.py ${OUTPUT} diff --git a/scripts/build-hyperv-image b/scripts/build-hyperv-image deleted file mode 100755 index 40c0c828..00000000 --- a/scripts/build-hyperv-image +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh -# -# Copyright (C) 2016 VyOS maintainers and contributors -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 or later as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -# -# File: build-hyperv-image -# Purpose: -# Build VyOS image for Hyper-V. - -export PACKER_BUILD_DIR=packer_build - -DST_DIR=${PACKER_BUILD_DIR}/hyperv -mkdir -p ${DST_DIR} - -# Convert raw image to VHD -source_image=${PACKER_BUILD_DIR}/qemu/vyos_qemu_image.img -vhd=${DST_DIR}/vyos_hyperv_image.vhd -qemu-img convert -f raw ${source_image} -O vpc ${vhd} -if [ "$?" = "0" ]; then - echo "Hyper-V image successfully created to ./${vhd}" -fi diff --git a/scripts/build-oracle-image b/scripts/build-oracle-image deleted file mode 100755 index e2066fc7..00000000 --- a/scripts/build-oracle-image +++ /dev/null @@ -1,154 +0,0 @@ -#!/bin/sh -# -# Copyright (C) 2018 VyOS maintainers and contributors -# -# This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 or later as published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -# -# File: build-oracle-image -# Purpose: -# Build VyOS image for Oracle cloud. - -lb bootstrap - -lb chroot -lb installer -lb binary_chroot -lb chroot_devpts install -lb chroot_proc install -lb chroot_selinuxfs install -lb chroot_sysfs install -lb chroot_hosts install -lb chroot_resolv install -lb chroot_hostname install -lb chroot_sysv-rc install -lb chroot_upstart install -lb chroot_apt install-binary -lb chroot_archives chroot install -lb binary_rootfs -lb binary_manifest -lb binary_package-lists -lb binary_linux-image -lb binary_memtest -lb binary_grub -lb binary_grub2 -lb binary_syslinux -lb binary_disk -lb binary_loadlin -lb binary_win32-loader -lb binary_includes -lb binary_hooks -lb binary_checksums - -# get vyos build version -version=$(cat version) -dateymd=$(date +%Y%m%d) - -###################################### -### Prepare the HDD (format, ext.) ### -###################################### -PARTED=/sbin/parted -OUTPUT=disk.raw -OUTPUTQCOW2=VyOS-"$dateymd".qcow2 -IMAGE_SIZE=10 -qemu-img create -f raw ${OUTPUT} ${IMAGE_SIZE}G - -${PARTED} -s ${OUTPUT} mktable msdos -${PARTED} -s -a optimal ${OUTPUT} mkpart primary ext4 1Mi 100% -${PARTED} -s ${OUTPUT} set 1 boot on -RESULT_KPARTX=`kpartx -asv ${OUTPUT} 2>&1` - -if echo "${RESULT_KPARTX}" | grep "^add map" ; then - LOOP_DEVICE=$(echo ${RESULT_KPARTX} | cut -d" " -f3) - LOOPRAW_DEVICE=${LOOP_DEVICE%p*} - echo "kpartx mounted using: ${LOOP_DEVICE} via ${LOOPRAW_DEVICE}" -else - echo "It seems kpartx didn't mount the image correctly: exiting." - exit 1 -fi - -cleanup(){ - error=$? - [ ! -d "${MOUNT_DIR}" ] && return - if [ "$error" -gt 0 ]; then - echo - echo "Error $error" - else - echo "Finished." - fi - - set +e - - sync - umount -l ${MOUNT_DIR} - rmdir ${MOUNT_DIR} - - umount devpts-live - umount proc-live - umount sysfs-live - - dmsetup remove --deferred ${LOOP_DEVICE} - losetup -d /dev/${LOOPRAW_DEVICE} - exit $error -} -trap "cleanup" EXIT TERM INT - -mkfs.ext4 /dev/mapper/${LOOP_DEVICE} -L persistence -UUID=$(blkid -o value -s UUID /dev/mapper/${LOOP_DEVICE}) - -# No fsck because of X days without checks -tune2fs -i 0 /dev/mapper/${LOOP_DEVICE} - -MOUNT_DIR=`mktemp -d -t build-debimg.XXXXXX` -mount /dev/mapper/${LOOP_DEVICE} ${MOUNT_DIR} - -######################## -### Setting-up files ### -######################## -mkdir -p ${MOUNT_DIR}/boot/grub -mkdir -p ${MOUNT_DIR}/boot/"$version"/rw - -echo "/ union" > ${MOUNT_DIR}/persistence.conf -cp binary/live/filesystem.squashfs ${MOUNT_DIR}/boot/"$version"/"$version.squashfs" -cp binary/live/initrd.img ${MOUNT_DIR}/boot/"$version"/initrd.img -cp binary/live/vmlinuz ${MOUNT_DIR}/boot/"$version"/vmlinuz - -######################## -### Create grub menu ### -######################## -cat > ${MOUNT_DIR}/boot/grub/grub.cfg << EOF -set timeout=5 -set default=0 - -menuentry "VyOS $version (Serial console)" { - linux /boot/"$version"/vmlinuz boot=live vyos-union=/boot/"$version" console=tty0 console=ttyS0,38400n8d earlyprintk=ttyS0,38400 consoleblank=0 systemd.show_status=true - initrd /boot/"$version"/initrd.img -} - -menuentry "Lost password change $version (Serial console)" { - linux /boot/"$version"/vmlinuz boot=live vyos-union=/boot/"$version" console=tty0 console=ttyS0,38400n8d earlyprintk=ttyS0,38400 consoleblank=0 systemd.show_status=true init=/opt/vyatta/sbin/standalone_root_pw_reset - initrd /boot/"$version"/initrd.img -} -EOF - - -############################# -### Setting-up bootloader ### -############################# -grub-install --boot-directory ${MOUNT_DIR}/boot --force --no-floppy --skip-fs-probe /dev/${LOOPRAW_DEVICE} - -################### -### HOOK SCRIPT ### -################### -fstrim ${MOUNT_DIR} -sync - -qemu-img convert -f raw -O qcow2 ${OUTPUT} ${OUTPUTQCOW2} -rm $OUTPUT diff --git a/scripts/build-qemu-image b/scripts/build-qemu-image deleted file mode 100755 index 349f4a5d..00000000 --- a/scripts/build-qemu-image +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/sh -# -# Copyright (C) 2016-2021 VyOS maintainers and contributors -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 or later as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -# -# File: build-qemu-image -# Purpose: -# Build VyOS raw image for qemu. - -BUILD_DIR="$(scripts/query-json build/build-config.json build_dir)" -BUILD_ARCH="$(scripts/query-json build/build-config.json architecture)" -export VERSION="$(cat $BUILD_DIR/version)" - -export ISO_IMAGE="${BUILD_DIR}/live-image-$BUILD_ARCH.hybrid.iso" -export ISO_MD5_SUM="$(md5sum ${ISO_IMAGE} | awk '{print $1}')" -export PACKER_BUILD_DIR=packer_build -export PACKER_LOG_PATH="${PACKER_BUILD_DIR}/build.log" -export PACKER_LOG=1 - -mkdir -p "${PACKER_BUILD_DIR}" - -packer build -only=qemu-image scripts/packer.json -cp "${PACKER_BUILD_DIR}/qemu/vyos_qemu_image.img" "$BUILD_DIR/vyos-$VERSION-$BUILD_ARCH.qcow2" diff --git a/scripts/build-vmware-image b/scripts/build-vmware-image deleted file mode 100755 index e56ce137..00000000 --- a/scripts/build-vmware-image +++ /dev/null @@ -1,210 +0,0 @@ -#!/bin/sh -# -# Copyright (C) 2019 VyOS maintainers and contributors -# -# This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 or later as published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -# -# File: build-vmware-image -# Purpose: -# Build VyOS image for VMWARE. - -if [ ! $(which vmdk-convert) ]; then - echo "Your system doesn't have vmdk-convert. Please install it from https://github.com/vmware/open-vmdk." - exit 1 -else - echo "Your system has vmdk-convert." -fi - -if [ ! $(which ovftool) ]; then - echo "Your system doesn't have ovftool. Please install it from https://www.vmware.com/support/developer/ovf/." - exit 1 -else - echo "Your system has ovftool." -fi - -lb bootstrap - -lb chroot -lb installer -lb binary_chroot -lb chroot_devpts install -lb chroot_proc install -lb chroot_selinuxfs install -lb chroot_sysfs install -lb chroot_hosts install -lb chroot_resolv install -lb chroot_hostname install -lb chroot_sysv-rc install -lb chroot_upstart install -lb chroot_apt install-binary -lb chroot_archives chroot install -lb binary_rootfs -lb binary_manifest -lb binary_package-lists -lb binary_linux-image -lb binary_memtest -lb binary_grub -lb binary_grub2 -lb binary_syslinux -lb binary_disk -lb binary_loadlin -lb binary_win32-loader -lb binary_includes -lb binary_hooks -lb binary_checksums - -# get vyos build version -version=$(cat version) -dateymd=$(date +%Y%m%d) - -###################################### -### Prepare the HDD (format, ext.) ### -###################################### -PARTED=/sbin/parted -OUTPUT=disk.raw -OUTPUTVMDK=VyOS-"$dateymd".vmdk -IMAGE_SIZE=2 -qemu-img create -f raw ${OUTPUT} ${IMAGE_SIZE}G - -${PARTED} -s ${OUTPUT} mktable msdos -${PARTED} -s -a optimal ${OUTPUT} mkpart primary ext4 1Mi 100% -${PARTED} -s ${OUTPUT} set 1 boot on -RESULT_KPARTX=`kpartx -asv ${OUTPUT} 2>&1` - -if echo "${RESULT_KPARTX}" | grep "^add map" ; then - LOOP_DEVICE=$(echo ${RESULT_KPARTX} | cut -d" " -f3) - LOOPRAW_DEVICE=${LOOP_DEVICE%p*} - echo "kpartx mounted using: ${LOOP_DEVICE} via ${LOOPRAW_DEVICE}" -else - echo "It seems kpartx didn't mount the image correctly: exiting." - exit 1 -fi - -cleanup(){ - error=$? - [ ! -d "${MOUNT_DIR}" ] && return - if [ "$error" -gt 0 ]; then - echo - echo "Error $error" - else - echo "Finished." - fi - - set +e - - sync - umount -l ${MOUNT_DIR} - rmdir ${MOUNT_DIR} - - umount devpts-live - umount proc-live - umount sysfs-live - - dmsetup remove --deferred ${LOOP_DEVICE} - losetup -d /dev/${LOOPRAW_DEVICE} - exit $error -} -trap "cleanup" EXIT TERM INT - -mkfs.ext4 /dev/mapper/${LOOP_DEVICE} -L persistence -UUID=$(blkid -o value -s UUID /dev/mapper/${LOOP_DEVICE}) - -# No fsck because of X days without checks -tune2fs -i 0 /dev/mapper/${LOOP_DEVICE} - -MOUNT_DIR=`mktemp -d -t build-debimg.XXXXXX` -mount /dev/mapper/${LOOP_DEVICE} ${MOUNT_DIR} - -######################## -### Setting-up files ### -######################## -mkdir -p ${MOUNT_DIR}/boot/grub -mkdir -p ${MOUNT_DIR}/boot/"$version"/rw - -echo "/ union" > ${MOUNT_DIR}/persistence.conf -cp binary/live/filesystem.squashfs ${MOUNT_DIR}/boot/"$version"/"$version.squashfs" -cp binary/live/initrd.img ${MOUNT_DIR}/boot/"$version"/initrd.img -cp binary/live/vmlinuz ${MOUNT_DIR}/boot/"$version"/vmlinuz - -######################## -### Create grub menu ### -######################## -cat > ${MOUNT_DIR}/boot/grub/grub.cfg << EOF -set timeout=5 -set default=0 - -menuentry "VyOS (KVM console)" { - linux /boot/"$version"/vmlinuz boot=live quiet vyos-union=/boot/"$version" console=ttyS0,115200 console=tty0 systemd.show_status=true - initrd /boot/"$version"/initrd.img -} - -menuentry "Lost password change (KVM console)" { - linux /boot/"$version"/vmlinuz boot=live vyos-union=/boot/"$version" console=ttyS0,115200 console=tty0 systemd.show_status=true init=/opt/vyatta/sbin/standalone_root_pw_reset - initrd /boot/"$version"/initrd.img -} - -menuentry "VyOS $version (Serial console)" { - linux /boot/"$version"/vmlinuz boot=live vyos-union=/boot/"$version" console=tty0 console=ttyS0,115200n8d consoleblank=0 systemd.show_status=true - initrd /boot/"$version"/initrd.img -} - -menuentry "Lost password change $version (Serial console)" { - linux /boot/"$version"/vmlinuz boot=live vyos-union=/boot/"$version" console=tty0 console=ttyS0,115200n8d consoleblank=0 systemd.show_status=true init=/opt/vyatta/sbin/standalone_root_pw_reset - initrd /boot/"$version"/initrd.img -} -EOF - - -############################# -### Setting-up bootloader ### -############################# -grub-install --boot-directory ${MOUNT_DIR}/boot --force --no-floppy --skip-fs-probe /dev/${LOOPRAW_DEVICE} - -################### -### HOOK SCRIPT ### -################### -fstrim ${MOUNT_DIR} -sync - -qemu-img convert -f raw ${OUTPUT} -O vmdk -o adapter_type=lsilogic ${OUTPUTVMDK} -rm ${OUTPUT} - -vmdk=vyos_vmware_image.vmdk -ovf=vyos_vmware_image.ovf -vmdk-convert ${OUTPUTVMDK} ${vmdk} - -# Generate OVF -echo 'Generating OVF file...' -vmdk_file_size=$(du --bytes ${vmdk} | cut -f1) -vmdk_populated_size=$(vmdk-convert -i ${vmdk} | jq .used) -sed ../scripts/template.ovf \ - -e "s/{{vmdk_file_size}}/${vmdk_file_size}/" \ - -e "s/{{vmdk_populated_size}}/${vmdk_populated_size}/" \ - -e "s/{{version}}/${version}/" \ - > ${ovf} - -# Generate manifest file -openssl sha1 *.vmdk *.ovf > vyos_vmware_image.mf - -# Convert the OVF to signed OVA... -echo 'Converting the OVF to signed OVA...' -private_key=${PRIVATE_KEY_PATH:-"../key/privatekey.pem"} -if [ ! -f ${private_key} ]; then - echo 'Please put your key to "key/privatekey.pem" in repository root, or set PRIVATE_KEY_PATH to environment variables.' - exit 1 -fi -ovftool --privateKey=${private_key} vyos_vmware_image.ovf vyos_vmware_image-signed.ova -#ovftool vyos_vmware_image.ovf vyos_vmware_image-signed.ova - -# Convert the OVF to signed OVF... -echo 'Converting the OVF to signed OVF...' -ovftool --privateKey=${private_key} vyos_vmware_image.ovf vyos_vmware_image-signed.ovf -#ovftool vyos_vmware_image.ovf vyos_vmware_image-signed.ovf diff --git a/scripts/packer-scripts/vmware.sh b/scripts/packer-scripts/vmware.sh deleted file mode 100644 index 60c4db7e..00000000 --- a/scripts/packer-scripts/vmware.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/vbash -source /opt/vyatta/etc/functions/script-template - -# Add Debian Jessie repository -set system package repository jessie url 'http://ftp.nl.debian.org/debian/' -set system package repository jessie distribution 'jessie' -set system package repository jessie components 'main contrib non-free' -commit -save - -# Install open-vm-tools -sudo apt-get update -sudo apt-get -y install open-vm-tools - -# Delete Debian Jessie repository -delete system package repository jessie -commit -save - -# Removing leftover leases and persistent rules -sudo rm -f /var/lib/dhcp3/* - -# Removing apt caches -sudo rm -rf /var/cache/apt/* - -# Removing hw-id -delete interfaces ethernet eth0 hw-id -commit -save diff --git a/scripts/packer.json b/scripts/packer.json deleted file mode 100644 index f1e49798..00000000 --- a/scripts/packer.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "variables": { - "iso_url": "{{env `ISO_IMAGE`}}", - "iso_checksum": "{{env `ISO_MD5_SUM`}}", - "output_directory": "{{env `PACKER_BUILD_DIR`}}" - }, - "builders": - [ - { - "name": "qemu-image", - "type": "qemu", - "iso_url": "{{user `iso_url`}}", - "iso_checksum": "md5:{{user `iso_checksum`}}", - "output_directory": "{{user `output_directory`}}/qemu", - "shutdown_command": "sudo halt -p", - "disk_size": 4096, - "format": "qcow2", - "headless": true, - "host_port_min": 2222, - "host_port_max": 2229, - "ssh_username": "vyos", - "ssh_password": "vyos", - "ssh_port": 22, - "ssh_wait_timeout": "300s", - "vm_name": "vyos_qemu_image.img", - "net_device": "virtio-net", - "disk_interface": "virtio", - "boot_wait": "5s", - "boot_command": - [ - "", - "vyos", - "vyos", - "install image", - "", - "", - "", - "Yes", - "", - "", - "", - "vyos", - "vyos", - "", - "reboot", - "Yes", - "vyos", - "vyos", - "configure", - "set interface ethernet eth0 address dhcp", - "set service ssh", - "commit", - "save", - "delete interface ethernet eth0 hw-id", - "commit", - "save", - "exit" - ] - } - ] -} diff --git a/scripts/template.ovf b/scripts/template.ovf deleted file mode 100644 index 26d6cc62..00000000 --- a/scripts/template.ovf +++ /dev/null @@ -1,223 +0,0 @@ - - - - - - - The list of logical networks - - WAN network - - - LAN network - - - - List of profiles - - - Minimal hardware profile - 1 vCPU, 512 MB RAM - - - - Medium hardware profile - 4 vCPUs, 16 GB RAM - - - - Large hardware profile - 8 vCPUs, 32 GB RAM - - - - Supported IP assignment schemes - - - Virtual disk information - - - - A virtual machine - - VyOS is a Linux-based network operating system that provides software-based network routing, firewall, and VPN functionality. - VyOS - Sentrium S.L. - {{version}} - https://www.vyos.io - https://sentrium.io/ - - Appliance user Settings - - - The password for the appliance 'vyos' account. Passwords must be at least 8 characters in length. - - - - The public ssh key for the appliance 'vyos' account. - - Appliance IPv4 Network Settings (WAN interface) - - - The host name for this virtual machine. - - - - The IPv4 address. Leave blank if DHCP is desired. - - - - The IPv4 netmask or prefix for this interface. Leave blank if DHCP is desired. - - - - Default gateway address. Leave blank if DHCP is desired. - - - - The domain name server IP Addresses for this VM (comma separated). Leave blank if DHCP is desired. - - - - NTP servers for this VM (comma separated). Leave blank if DHCP is desired. - - Appliance API Settings - - - API key to access the VyOS api. If left blank the api wil not be enabled. - - - - API port to listen on for calls. Leave blank to keep it default '443'. - - - - Enable API debug logging - - - - User-Data, encoded with base64. - - - - VM specific properties - - - - - VyOS - - - The operating system installed - Debian GNU/Linux 8 (64-bit) - - - Virtual Hardware Requirements - - Virtual Hardware Family - 0 - vmx-11 - - - hertz * 10^6 - Number of virtual CPUs - 1 virtual CPU - 1 - 3 - 1 - - - hertz * 10^6 - Number of virtual CPUs - 4 virtual CPUs - 1 - 3 - 4 - - - hertz * 10^6 - Number of virtual CPUs - 8 virtual CPUs - 1 - 3 - 8 - - - byte * 2^20 - Memory Size - 512 MB of memory - 2 - 512 - 4 - 512 - - - byte * 2^20 - Memory Size - 16 GB of memory - 2 - 16384 - 4 - 16384 - - - byte * 2^20 - Memory Size - 32 GB of memory - 2 - 32768 - 4 - 32768 - - - 0 - SCSI Controller 0 - VMware Paravirtual SCSI - 3 - VirtualSCSI - 6 - - - 0 - disk0 - ovf:/disk/vmdisk1 - 4 - 3 - 17 - - - 0 - IDE Controller 0 - 5 - 5 - - - 0 - false - CD/DVD Drive 1 - 6 - 5 - 15 - - - 7 - true - WAN - NIC representing WAN - WAN - 7 - vmxnet3 - 10 - - - 8 - true - LAN - NIC representing LAN - LAN - 8 - vmxnet3 - 10 - - - - - - - diff --git a/scripts/vhd.py b/scripts/vhd.py deleted file mode 100755 index 6a268924..00000000 --- a/scripts/vhd.py +++ /dev/null @@ -1,90 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -# Copyright: 2015 Bastian Blank -# License: MIT, see LICENSE.txt for details. - -import array -import struct -import time -import sys -import os - -from uuid import uuid4 - - -class VHDFooter: - _struct = struct.Struct('>8sLLQL4sL4sQQ4sLL16sB427x') - size = _struct.size - - vhd_timestamp_base = 946684800 - - def __init__(self, size, uuid=None, timestamp=None): - self.size = size - self.timestamp = timestamp or (int(time.time()) - self.vhd_timestamp_base) - self.uuid = uuid or uuid4() - - @staticmethod - def _checksum(msg): - return 0x100000000 + ~sum(array.array("B", msg)) - - def _pack_geometry(self): - sectors = self.size // 512 - - if sectors > 65535 * 16 * 255: - sectors = 65535 * 16 * 255 - - if sectors >= 65535 * 16 * 63: - sectorsPerTrack = 255 - heads = 16 - cylinderTimesHeads = sectors // sectorsPerTrack - - else: - sectorsPerTrack = 17 - cylinderTimesHeads = sectors // sectorsPerTrack - - heads = (cylinderTimesHeads + 1023) // 1024 - - if heads < 4: - heads = 4 - if cylinderTimesHeads >= (heads * 1024) or heads > 16: - sectorsPerTrack = 31 - heads = 16 - cylinderTimesHeads = sectors // sectorsPerTrack - if cylinderTimesHeads >= (heads * 1024): - sectorsPerTrack = 63 - heads = 16 - cylinderTimesHeads = sectors // sectorsPerTrack - - cylinders = cylinderTimesHeads // heads - - return struct.pack('>HBB', cylinders, heads, sectorsPerTrack) - - def _pack(self, checksum): - return self._struct.pack( - b'conectix', # Cookie - 0x00000002, # Features - 0x00010000, # File Format Version - 0xffffffffffffffff, # Data Offset - self.timestamp, # Time Stamp - b'qemu', # Creator Application - 0x00010000, # Creator Version - b'Wi2k', # Creator Host OS - self.size, # Original Size - self.size, # Current Size - self._pack_geometry(), # Disk Geometry - 2, # Disk Type - checksum, # Checksum - self.uuid.bytes, # Unique Id - 0, # Saved State - ) - - def pack(self): - c = self._checksum(self._pack(0)) - return self._pack(c) - -with open(sys.argv[1], 'rb+') as f: - f.seek(0, 2) - image_size = f.tell() - image_size_complete = image_size + VHDFooter.size - footer = VHDFooter(image_size) - f.write(footer.pack()) diff --git a/tools/armada-388-clearfog.dtb b/tools/armada-388-clearfog.dtb deleted file mode 100755 index cc25d96f..00000000 Binary files a/tools/armada-388-clearfog.dtb and /dev/null differ diff --git a/tools/cloud-init/99-debug-user.chroot b/tools/cloud-init/99-debug-user.chroot deleted file mode 100755 index 354b46ab..00000000 --- a/tools/cloud-init/99-debug-user.chroot +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash -# Script to add a user to Linux system -if [ $(id -u) -eq 0 ]; then - egrep "^debuguser" /etc/passwd >/dev/null - if [ $? -eq 0 ]; then - echo "$username exists!" - exit 1 - else - pass=$(perl -e 'print crypt($ARGV[0], "password")' debuguser) - useradd -m -p $pass debuguser - usermod -aG sudo debuguser - [ $? -eq 0 ] && echo "User has been added to system!" || echo "Failed to add a user!" - fi -else - echo "Only root may add a user to the system" - exit 2 -fi diff --git a/tools/cloud-init/99-disable-networking.chroot b/tools/cloud-init/99-disable-networking.chroot deleted file mode 100755 index e576c8a5..00000000 --- a/tools/cloud-init/99-disable-networking.chroot +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -systemctl disable networking -/usr/sbin/update-rc.d -f networking remove diff --git a/tools/cloud-init/GCE/90_dpkg.cfg b/tools/cloud-init/GCE/90_dpkg.cfg deleted file mode 100644 index ac4ffeae..00000000 --- a/tools/cloud-init/GCE/90_dpkg.cfg +++ /dev/null @@ -1,2 +0,0 @@ -# to update this file, run dpkg-reconfigure cloud-init -datasource_list: [ GCE ] diff --git a/tools/cloud-init/GCE/config.boot.default b/tools/cloud-init/GCE/config.boot.default deleted file mode 100644 index 5af780a9..00000000 --- a/tools/cloud-init/GCE/config.boot.default +++ /dev/null @@ -1,31 +0,0 @@ -system { - host-name vyos - syslog { - global { - facility all { - level info - } - facility protocols { - level debug - } - } - } - ntp { - server "time1.vyos.net" - server "time2.vyos.net" - server "time3.vyos.net" - } - console { - device ttyS0 { - speed 38400 - } - } - config-management { - commit-revisions 100 - } -} - -interfaces { - loopback lo { - } -} diff --git a/tools/cloud-init/GCE/config.boot.default-debug b/tools/cloud-init/GCE/config.boot.default-debug deleted file mode 100644 index a4f32062..00000000 --- a/tools/cloud-init/GCE/config.boot.default-debug +++ /dev/null @@ -1,42 +0,0 @@ -interfaces { - ethernet eth0 { - address dhcp - } -} -service { - ssh { - port 8022 - client-keepalive-interval 180 - } -} -system { - host-name vyos - syslog { - global { - facility all { - level info - } - facility protocols { - level debug - } - } - } - ntp { - server "time1.vyos.net" - server "time2.vyos.net" - server "time3.vyos.net" - } - console { - device ttyS0 { - speed 38400 - } - } - config-management { - commit-revisions 100 - } -} - -interfaces { - loopback lo { - } -} diff --git a/tools/cloud-init/OCI/90_dpkg.cfg b/tools/cloud-init/OCI/90_dpkg.cfg deleted file mode 100644 index 0575be1e..00000000 --- a/tools/cloud-init/OCI/90_dpkg.cfg +++ /dev/null @@ -1,2 +0,0 @@ -# to update this file, run dpkg-reconfigure cloud-init -datasource_list: [ Oracle ] diff --git a/tools/cloud-init/OCI/config.boot.default b/tools/cloud-init/OCI/config.boot.default deleted file mode 100644 index d5cb4c05..00000000 --- a/tools/cloud-init/OCI/config.boot.default +++ /dev/null @@ -1,40 +0,0 @@ -system { - host-name vyos - login { - user vyos { - authentication { - encrypted-password "*" - plaintext-password "" - } - level admin - } - } - syslog { - global { - facility all { - level info - } - facility protocols { - level debug - } - } - } - ntp { - server "time1.vyos.net" - server "time2.vyos.net" - server "time3.vyos.net" - } - console { - device ttyS0 { - speed 9600 - } - } - config-management { - commit-revisions 100 - } -} - -interfaces { - loopback lo { - } -} diff --git a/tools/cloud-init/PACKET/90_dpkg.cfg b/tools/cloud-init/PACKET/90_dpkg.cfg deleted file mode 100644 index 4f7bbd8c..00000000 --- a/tools/cloud-init/PACKET/90_dpkg.cfg +++ /dev/null @@ -1,8 +0,0 @@ -# to update this file, run dpkg-reconfigure cloud-init -datasource_list: [ Ec2 ] -datasource: - Ec2: - metadata_urls: ["https://metadata.packet.net"] - max_wait: 120 - timeout: 50 - strict_id: false diff --git a/tools/cloud-init/PACKET/config.boot.default b/tools/cloud-init/PACKET/config.boot.default deleted file mode 100644 index 1ceff6a3..00000000 --- a/tools/cloud-init/PACKET/config.boot.default +++ /dev/null @@ -1,31 +0,0 @@ -system { - host-name vyos - syslog { - global { - facility all { - level info - } - facility protocols { - level debug - } - } - } - ntp { - server "time1.vyos.net" - server "time2.vyos.net" - server "time3.vyos.net" - } - console { - device ttyS1 { - speed 115200 - } - } - config-management { - commit-revisions 100 - } -} - -interfaces { - loopback lo { - } -} diff --git a/tools/cloud-init/PACKET/config.boot.default-debug b/tools/cloud-init/PACKET/config.boot.default-debug deleted file mode 100644 index 1b850568..00000000 --- a/tools/cloud-init/PACKET/config.boot.default-debug +++ /dev/null @@ -1,42 +0,0 @@ -interfaces { - ethernet eth0 { - address dhcp - } -} -service { - ssh { - port 8022 - client-keepalive-interval 180 - } -} -system { - host-name vyos - syslog { - global { - facility all { - level info - } - facility protocols { - level debug - } - } - } - ntp { - server "time1.vyos.net" - server "time2.vyos.net" - server "time3.vyos.net" - } - console { - device ttyS1 { - speed 115200 - } - } - config-management { - commit-revisions 100 - } -} - -interfaces { - loopback lo { - } -} diff --git a/tools/cloud-init/azure/99-walinuxagent.chroot b/tools/cloud-init/azure/99-walinuxagent.chroot deleted file mode 100755 index 1de525cf..00000000 --- a/tools/cloud-init/azure/99-walinuxagent.chroot +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -echo I: Waagent / Cloud init - -# debug info: -#echo ForwardToConsole=yes >> /etc/systemd/journald.conf - -# dhcp issue on azure -sed -ie 's,rfc3442-classless-static-routes,disabled-\0,' /etc/dhcp/dhclient.conf - -rm -f /etc/ssh/ssh_host_* -rm -f /var/log/waagent.log -rm -r /var/cache/apt/* -mkdir -p /var/cache/apt/archives -rm -r /var/lib/apt/lists/* - -# prevent systemd message flooding -echo ':msg, contains, "Time has been changed" ~' > /etc/rsyslog.d/time_msgs.conf diff --git a/tools/cloud-init/azure/config.boot.default b/tools/cloud-init/azure/config.boot.default deleted file mode 100644 index c3a0aa5d..00000000 --- a/tools/cloud-init/azure/config.boot.default +++ /dev/null @@ -1,31 +0,0 @@ -system { - host-name vyos - syslog { - global { - facility all { - level info - } - facility protocols { - level debug - } - } - } - ntp { - server "time1.vyos.net" - server "time2.vyos.net" - server "time3.vyos.net" - } - console { - device ttyS0 { - speed 115200 - } - } - config-management { - commit-revisions 100 - } -} - -interfaces { - loopback lo { - } -} diff --git a/tools/cloud-init/azure/vyos-azure.list.chroot b/tools/cloud-init/azure/vyos-azure.list.chroot deleted file mode 100644 index 91320a59..00000000 --- a/tools/cloud-init/azure/vyos-azure.list.chroot +++ /dev/null @@ -1,2 +0,0 @@ -cloud-init -walinuxagent diff --git a/tools/cloud-init/cloud-init.list.chroot b/tools/cloud-init/cloud-init.list.chroot deleted file mode 100644 index a5eeb639..00000000 --- a/tools/cloud-init/cloud-init.list.chroot +++ /dev/null @@ -1,2 +0,0 @@ -cloud-init -cloud-guest-utils diff --git a/tools/cloud-init/openstack/90_dpkg.cfg b/tools/cloud-init/openstack/90_dpkg.cfg deleted file mode 100644 index 479924cf..00000000 --- a/tools/cloud-init/openstack/90_dpkg.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# to update this file, run dpkg-reconfigure cloud-init -datasource_list: [ NoCloud, ConfigDrive, OpenNebula, DigitalOcean, AltCloud, MAAS, OpenStack, CloudSigma, SmartOS, None ] -datasource: - OpenStack: - max_wait: 6 - timeout: 3 - retries: 2 diff --git a/tools/cloud-init/openstack/config.boot.default b/tools/cloud-init/openstack/config.boot.default deleted file mode 100644 index d5cb4c05..00000000 --- a/tools/cloud-init/openstack/config.boot.default +++ /dev/null @@ -1,40 +0,0 @@ -system { - host-name vyos - login { - user vyos { - authentication { - encrypted-password "*" - plaintext-password "" - } - level admin - } - } - syslog { - global { - facility all { - level info - } - facility protocols { - level debug - } - } - } - ntp { - server "time1.vyos.net" - server "time2.vyos.net" - server "time3.vyos.net" - } - console { - device ttyS0 { - speed 9600 - } - } - config-management { - commit-revisions 100 - } -} - -interfaces { - loopback lo { - } -} diff --git a/tools/cloud-init/vmware/90_dpkg.cfg b/tools/cloud-init/vmware/90_dpkg.cfg deleted file mode 100644 index f9c9cba0..00000000 --- a/tools/cloud-init/vmware/90_dpkg.cfg +++ /dev/null @@ -1,3 +0,0 @@ -# to update this file, run dpkg-reconfigure cloud-init -datasource_list: [ OVF ] -disable_vmware_customization: false diff --git a/tools/cloud-init/vmware/config.boot.default b/tools/cloud-init/vmware/config.boot.default deleted file mode 100644 index 8b7cdae5..00000000 --- a/tools/cloud-init/vmware/config.boot.default +++ /dev/null @@ -1,30 +0,0 @@ -system { - host-name vyos - login { - user vyos { - authentication { - encrypted-password $6$QxPS.uk6mfo$9QBSo8u1FkH16gMyAVhus6fU3LOzvLR9Z9.82m3tiHFAxTtIkhaZSWssSgzt4v4dGAL8rhVQxTg0oAG9/q11h/ - plaintext-password "" - } - level admin - } - } - syslog { - global { - facility all { - level info - } - facility protocols { - level debug - } - } - } - config-management { - commit-revisions 100 - } -} - -interfaces { - loopback lo { - } -} diff --git a/tools/run-qemu-image.sh b/tools/run-qemu-image.sh deleted file mode 100755 index b021ebd6..00000000 --- a/tools/run-qemu-image.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -VM_NAME='vyos_qemu' -VM_IMAGE='./packer_build/qemu/vyos_qemu_image.img' -MEMORY_SIZE='1024' -NCPUS=1 -SSH_PORT=2222 - -qemu-system-x86_64 \ - -name "${VM_NAME}" \ - -m ${MEMORY_SIZE} \ - -net nic,vlan=0,model=virtio \ - -net user,vlan=0,hostfwd=tcp::"${SSH_PORT}"-:22,hostname="${VM_NAME}" \ - -drive if=virtio,file=${VM_IMAGE} \ - -machine accel=kvm \ - -cpu host -smp ${NCPUS} diff --git a/tools/u-boot-spl.kwb b/tools/u-boot-spl.kwb deleted file mode 100644 index 1ea4d759..00000000 Binary files a/tools/u-boot-spl.kwb and /dev/null differ -- cgit v1.2.3