summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-07-10 11:51:04 +0200
committerGitHub <noreply@github.com>2021-07-10 11:51:04 +0200
commitd6eedb6e1b6427e548c6726a1703824918be24ba (patch)
tree427f3c2b0327295f526aebf7df375201b0ed346f
parent0ba721e3f1c60be9fbb03b3c6e9867d795f5cfca (diff)
parent7afee1ae93a9055bb7af168d731ab8666f81ca93 (diff)
downloadvyos-build-d6eedb6e1b6427e548c6726a1703824918be24ba.tar.gz
vyos-build-d6eedb6e1b6427e548c6726a1703824918be24ba.zip
Merge pull request #175 from UnicronNL/current
T3664: Eliminate obsolete build flavours
-rw-r--r--Makefile136
-rw-r--r--scripts/Vagrantfile12
-rwxr-xr-xscripts/build-GCE-image165
-rwxr-xr-xscripts/build-azure-image151
-rwxr-xr-xscripts/build-clearfog-image158
-rwxr-xr-xscripts/build-hyperv-image32
-rwxr-xr-xscripts/build-oracle-image154
-rwxr-xr-xscripts/build-qemu-image34
-rwxr-xr-xscripts/build-vagrant-libvirt-box74
-rwxr-xr-xscripts/build-vmware-image210
-rwxr-xr-xscripts/check-vm-build-env51
-rw-r--r--scripts/packer-scripts/vmware.sh29
-rw-r--r--scripts/packer.json61
-rw-r--r--scripts/template.ovf223
-rwxr-xr-xscripts/vhd.py90
-rwxr-xr-xtools/armada-388-clearfog.dtbbin19429 -> 0 bytes
-rwxr-xr-xtools/cloud-init/99-debug-user.chroot17
-rwxr-xr-xtools/cloud-init/99-disable-networking.chroot3
-rw-r--r--tools/cloud-init/GCE/90_dpkg.cfg2
-rw-r--r--tools/cloud-init/GCE/config.boot.default31
-rw-r--r--tools/cloud-init/GCE/config.boot.default-debug42
-rw-r--r--tools/cloud-init/OCI/90_dpkg.cfg2
-rw-r--r--tools/cloud-init/OCI/config.boot.default40
-rw-r--r--tools/cloud-init/PACKET/90_dpkg.cfg8
-rw-r--r--tools/cloud-init/PACKET/config.boot.default31
-rw-r--r--tools/cloud-init/PACKET/config.boot.default-debug42
-rwxr-xr-xtools/cloud-init/azure/99-walinuxagent.chroot18
-rw-r--r--tools/cloud-init/azure/config.boot.default31
-rw-r--r--tools/cloud-init/azure/vyos-azure.list.chroot2
-rw-r--r--tools/cloud-init/cloud-init.list.chroot2
-rw-r--r--tools/cloud-init/openstack/90_dpkg.cfg7
-rw-r--r--tools/cloud-init/openstack/config.boot.default40
-rw-r--r--tools/cloud-init/vmware/90_dpkg.cfg3
-rw-r--r--tools/cloud-init/vmware/config.boot.default30
-rwxr-xr-xtools/run-qemu-image.sh16
-rw-r--r--tools/u-boot-spl.kwbbin557788 -> 0 bytes
36 files changed, 0 insertions, 1947 deletions
diff --git a/Makefile b/Makefile
index 59f5fb3..3defd02 100644
--- a/Makefile
+++ b/Makefile
@@ -44,84 +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:
- @set -e
- @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:
- @set -e
- @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 +58,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 +134,6 @@ clean:
rm -f *.mf
rm -f *.ovf
rm -f *.ova
- rm -f *.vmdk
.PHONY: purge
purge:
diff --git a/scripts/Vagrantfile b/scripts/Vagrantfile
deleted file mode 100644
index 7c89422..0000000
--- a/scripts/Vagrantfile
+++ /dev/null
@@ -1,12 +0,0 @@
-Vagrant.configure("2") do |config|
- config.vm.synced_folder './', '/vagrant',
- type: "rsync",
- owner: 'vyos',
- group: 'users',
- mount_options: ['dmode=775,fmode=775']
- config.ssh.username = "vyos"
- config.ssh.password = "vyos"
- config.vm.provider :libvirt do |libvirt|
- libvirt.driver = "kvm"
- end
-end
diff --git a/scripts/build-GCE-image b/scripts/build-GCE-image
deleted file mode 100755
index f927387..0000000
--- 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 <http://www.gnu.org/licenses/>.
-#
-# 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 48590cb..0000000
--- 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 <http://www.gnu.org/licenses/>.
-#
-# 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-clearfog-image b/scripts/build-clearfog-image
deleted file mode 100755
index 0ef6d32..0000000
--- a/scripts/build-clearfog-image
+++ /dev/null
@@ -1,158 +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 <http://www.gnu.org/licenses/>.
-#
-# File: build-clearfog-image
-# Purpose:
-# Build VyOS image for for Solidrun clearfog.
-
-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)
-
-# create sd-card image and partition it
-qemu-img create -f raw sr-a38x-cf-vyos-"$dateymd"-testing.img 1.8G
-parted --script sr-a38x-cf-vyos-"$dateymd"-testing.img mklabel msdos
-parted --script sr-a38x-cf-vyos-"$dateymd"-testing.img mkpart primary fat16 8192s 60
-parted --script sr-a38x-cf-vyos-"$dateymd"-testing.img mkpart primary ext2 60 1900
-parted --script sr-a38x-cf-vyos-"$dateymd"-testing.img set 1 boot on
-
-# mount image and create filesystems
-losetup /dev/loop0 sr-a38x-cf-vyos-"$dateymd"-testing.img
-partprobe /dev/loop0
-mkfs.vfat -n EFI -F 16 -I /dev/loop0p1
-mkfs.ext2 -L persistence /dev/loop0p2
-
-# mount image partitions
-mkdir -p /boot/efi
-mount /dev/loop0p1 /boot/efi
-mkdir -p /mnt
-mount /dev/loop0p2 /mnt
-
-# setup files on image
-mkdir -p /mnt/boot/grub
-mkdir -p /mnt/boot/"$version"/rw
-echo "/ union" > /mnt/persistence.conf
-cp binary/live/filesystem.squashfs /mnt/boot/"$version"/"$version.squashfs"
-cp binary/live/initrd.img-* /mnt/boot/"$version"/initrd.img
-cp binary/live/vmlinuz-* /mnt/boot/"$version"/vmlinuz
-cp ../tools/armada-388-clearfog.dtb /boot/efi/armada-388-clearfog.dtb
-
-# create boot script
-cat > /boot/efi/boot.script << EOF
-# load DTB
-echo "Loading armada-388-clearfog.dtb"
-load mmc 0:1 \$fdt_addr_r armada-388-clearfog.dtb
-fdt addr \$fdt_addr_r 20000
-
-# load efi
-echo "Loading EFI image ..."
-load mmc 0:1 \$loadaddr EFI/debian/grubarm.efi
-
-# Sleep a while so the MMC driver can settle down
-echo "Sleeping 5 seconds ..."
-sleep 5
-
-# boot
-echo "Booting ..."
-bootefi \$loadaddr
-EOF
-
-# compile boot script for u-boot
-mkimage -A arm -O linux -T script -C none -a 0 -e 0 -d /boot/efi/boot.script /boot/efi/boot.scr
-
-# create grub config file to include
-cat > load.cfg << EOF
-set root=(hd0,msdos2)
-set prefix=(hd0,msdos2)/boot/grub
-devicetree (hd0,msdos1)/armada-388-clearfog.dtb
-insmod normal
-normal
-EOF
-
-# create grub menu
-cat > /mnt/boot/grub/grub.cfg << EOF
-set default=0
-set timeout=5
-
-echo -n Press ESC to enter the Grub menu...
-if sleep --verbose --interruptible 5 ; then
- terminal_input console serial
-fi
-
-
-menuentry "VyOS $version (Serial console)" {
- linux /boot/"$version"/vmlinuz boot=live quiet vyos-union=/boot/"$version" console=ttyS0,115200n8
- initrd /boot/"$version"/initrd.img
-}
-
-menuentry "Lost password change $version (Serial console)" {
- linux /boot/"$version"/vmlinuz boot=live quiet vyos-union=/boot/"$version" console=ttyS0,115200n8 init=/opt/vyatta/sbin/standalone_root_pw_reset
- initrd /boot/"$version"/initrd.img
-}
-EOF
-
-# install efi grub to image
-grub-install --efi-directory /boot/efi --boot-directory /mnt/boot -d /usr/lib/grub/arm-efi /dev/loop0
-
-# create grub efi executable
-grub-mkimage -O arm-efi -p /boot/grub -d /usr/lib/grub/arm-efi -c load.cfg \
-ext2 iso9660 linux echo configfile \
-search_label search_fs_file search \
-search_fs_uuid ls normal gzio \
-png fat gettext font minicmd \
-gfxterm gfxmenu video video_fb \
-part_msdos part_gpt > /boot/efi/EFI/debian/grubarm.efi
-
-# unmount image partitions
-umount /mnt
-umount /boot/efi
-
-# write u-boot to image
-dd if=../tools/u-boot-spl.kwb of=/dev/loop0 bs=512 seek=1
-
-# unmount image
-sudo losetup -D
-
-# compress image
-xz -v sr-a38x-cf-vyos-"$dateymd"-testing.img
diff --git a/scripts/build-hyperv-image b/scripts/build-hyperv-image
deleted file mode 100755
index 40c0c82..0000000
--- 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 <http://www.gnu.org/licenses/>.
-#
-# 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 e2066fc..0000000
--- 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 <http://www.gnu.org/licenses/>.
-#
-# 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 349f4a5..0000000
--- 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 <http://www.gnu.org/licenses/>.
-#
-# 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-vagrant-libvirt-box b/scripts/build-vagrant-libvirt-box
deleted file mode 100755
index 6db77c2..0000000
--- a/scripts/build-vagrant-libvirt-box
+++ /dev/null
@@ -1,74 +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 <http://www.gnu.org/licenses/>.
-#
-# File: build-vagrant-libvirt-box
-# Purpose:
-# Build VyOS Vagrant libvirt box.
-
-export PACKER_BUILD_DIR=packer_build
-
-DST_DIR=${PACKER_BUILD_DIR}/vagrant-libvirt
-BOX_DIR=${DST_DIR}/box
-mkdir -p ${BOX_DIR}
-
-# Copy qcow2 image
-cp -p packer_build/qemu/vyos_qemu_image.img ${BOX_DIR}/box.img
-
-# Put metadata.json and Vagrantfile
-echo '{"format":"qcow2","provider":"libvirt","virtual_size":4}' > ${BOX_DIR}/metadata.json
-cat <<EOF > ${BOX_DIR}/Vagrantfile
-Vagrant.configure("2") do |config|
- config.vm.synced_folder './', '/vagrant',
- type: "rsync",
- owner: 'vyos',
- group: 'users',
- mount_options: ['dmode=775,fmode=775']
- config.ssh.username = "vyos"
- config.ssh.password = "vyos"
- config.vm.provider :libvirt do |libvirt|
- libvirt.driver = "kvm"
- end
-end
-EOF
-
-# Create box
-box=${DST_DIR}/vyos_vagrant_libvirt.box
-tar -C ${BOX_DIR} -czvf ${box} metadata.json Vagrantfile box.img
-if [ "$?" = "0" ]; then
- echo "Vagrant libvirt box successfully created to ./${box}"
-fi
-
-PROVIDER=libvirt
-
-# Create version
-major=$(cat build/version | cut -d'+' -f2 | cut -d'-' -f1 | rev | cut -c 5- | rev)
-sub=$(cat build/version | cut -d'+' -f2 | cut -d'-' -f1 | rev | cut -c 3-4 | rev)
-minor=$(cat build/version | cut -d'+' -f2 | cut -d'-' -f1 | rev | cut -c 1-2 | rev)
-version=$(echo "$major.$sub.$minor")
-curl -XPOST -d "version[version]=${version}" \
- https://app.vagrantup.com/api/v1/box/${VAGRANT_BOX_NAME}/versions?access_token=${VAGRANT_CLOUD_ACCESS_TOKEN}
-echo
-
-# Create provider
-urlencoded_version=$(cat build/version | sed 's/+/%2B/')
-curl -XPOST -d "provider[name]=${PROVIDER}" -d "provider[url]=${VAGRANT_BOX_BASE_URL}/vyos-${urlencoded_version}-vagrant-${PROVIDER}.box" \
- https://app.vagrantup.com/api/v1/box/${VAGRANT_BOX_NAME}/version/${version}/providers?access_token=${VAGRANT_CLOUD_ACCESS_TOKEN}
-echo
-
-# Release version
-curl -XPUT \
- https://app.vagrantup.com/api/v1/box/${VAGRANT_BOX_NAME}/version/${version}/release?access_token=${VAGRANT_CLOUD_ACCESS_TOKEN}
-echo
diff --git a/scripts/build-vmware-image b/scripts/build-vmware-image
deleted file mode 100755
index e56ce13..0000000
--- 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 <http://www.gnu.org/licenses/>.
-#
-# 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/check-vm-build-env b/scripts/check-vm-build-env
deleted file mode 100755
index 8efab84..0000000
--- a/scripts/check-vm-build-env
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/usr/bin/env python3
-#
-# 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 <http://www.gnu.org/licenses/>.
-#
-# File: check-vm-build-env
-# Purpose:
-# Checks if packages required for VM image build are installed.
-
-
-import os
-import sys
-
-import util
-
-deps = {
- 'packages': [
- 'jq',
- 'qemu-system-x86',
- 'qemu-utils'
- ],
- 'binaries': ['packer']
-}
-
-print("Checking if packages required for VyOS image build are installed")
-
-checker = util.DependencyChecker(deps)
-
-missing = checker.get_missing_dependencies()
-if not missing:
- print("All dependencies are installed")
- sys.exit(0)
-else:
- checker.print_missing_deps()
- if 'packer' in missing['binaries']:
- print("Your system does not have Packer.")
- print("Please install Packer from https://www.packer.io/downloads.html.")
- sys.exit(1)
-
-sys.exit(0)
diff --git a/scripts/packer-scripts/vmware.sh b/scripts/packer-scripts/vmware.sh
deleted file mode 100644
index 60c4db7..0000000
--- 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 f1e4979..0000000
--- 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":
- [
- "<enter><wait3m>",
- "vyos<enter><wait5>",
- "vyos<wait><enter><wait10>",
- "install image<enter><wait5>",
- "<enter><wait5>",
- "<enter><wait5>",
- "<enter><wait5>",
- "Yes<enter><wait5>",
- "<enter><wait10>",
- "<enter><wait5>",
- "<enter><wait5>",
- "vyos<enter><wait5>",
- "vyos<enter><wait10>",
- "<enter><wait10><wait10>",
- "reboot<enter><wait5>",
- "Yes<enter><wait3m>",
- "vyos<enter><wait5>",
- "vyos<enter><wait10>",
- "configure<enter><wait5>",
- "set interface ethernet eth0 address dhcp<enter><wait5>",
- "set service ssh<enter><wait5>",
- "commit<enter><wait5>",
- "save<enter><wait5>",
- "delete interface ethernet eth0 hw-id<enter><wait5>",
- "commit<enter><wait5>",
- "save<enter><wait5>",
- "exit<enter><wait5>"
- ]
- }
- ]
-}
diff --git a/scripts/template.ovf b/scripts/template.ovf
deleted file mode 100644
index 26d6cc6..0000000
--- a/scripts/template.ovf
+++ /dev/null
@@ -1,223 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ovf:Envelope xmlns="http://schemas.dmtf.org/ovf/envelope/1" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vmw="http://www.vmware.com/schema/ovf" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <References>
- <File ovf:href="vyos_vmware_image.vmdk" ovf:id="file1" ovf:size="{{vmdk_file_size}}"/>
- </References>
- <ovf:NetworkSection>
- <ovf:Info>The list of logical networks</ovf:Info>
- <ovf:Network ovf:name="WAN">
- <ovf:Description>WAN network</ovf:Description>
- </ovf:Network>
- <ovf:Network ovf:name="LAN">
- <ovf:Description>LAN network</ovf:Description>
- </ovf:Network>
- </ovf:NetworkSection>
- <DeploymentOptionSection>
- <Info>List of profiles</Info>
- <Configuration ovf:default="true" ovf:id="1CPU-512MB">
- <Label ovf:msgid="Small.label">Small</Label>
- <Description ovf:msgid="Small.description">Minimal hardware profile - 1 vCPU, 512 MB RAM</Description>
- </Configuration>
- <Configuration ovf:id="4CPU-16GB">
- <Label ovf:msgid="Medium.label">Medium</Label>
- <Description ovf:msgid="Medium.description">Medium hardware profile - 4 vCPUs, 16 GB RAM</Description>
- </Configuration>
- <Configuration ovf:id="8CPU-32GB">
- <Label ovf:msgid="Large.label">Large</Label>
- <Description ovf:msgid="Large.description">Large hardware profile - 8 vCPUs, 32 GB RAM</Description>
- </Configuration>
- </DeploymentOptionSection>
- <vmw:IpAssignmentSection ovf:required="false" vmw:protocols="IPv4 IPv6" vmw:schemes="ovfenv dhcp">
- <Info>Supported IP assignment schemes</Info>
- </vmw:IpAssignmentSection>
- <DiskSection>
- <Info>Virtual disk information</Info>
- <Disk ovf:capacity="10" ovf:capacityAllocationUnits="byte * 2^30" ovf:diskId="vmdisk1" ovf:fileRef="file1" ovf:format="http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized" ovf:populatedSize="{{vmdk_populated_size}}"/>
- </DiskSection>
- <VirtualSystem ovf:id="VyOS">
- <Info>A virtual machine</Info>
- <ProductSection ovf:required="false">
- <Info>VyOS is a Linux-based network operating system that provides software-based network routing, firewall, and VPN functionality.</Info>
- <Product>VyOS</Product>
- <Vendor>Sentrium S.L.</Vendor>
- <Version>{{version}}</Version>
- <ProductUrl>https://www.vyos.io</ProductUrl>
- <VendorUrl>https://sentrium.io/</VendorUrl>
- <AppUrl/>
- <Category>Appliance user Settings</Category>
- <Property ovf:key="password" ovf:password="true" ovf:qualifiers="MinLen(8)" ovf:type="string" ovf:userConfigurable="true" ovf:value="">
- <Label ovf:msgid="Password.label">Password</Label>
- <Description ovf:msgid="Password.description">The password for the appliance &apos;vyos&apos; account. Passwords must be at least 8 characters in length.</Description>
- </Property>
- <Property ovf:key="public-keys" ovf:type="string" ovf:userConfigurable="true" ovf:value="">
- <Label>Public key</Label>
- <Description>The public ssh key for the appliance &apos;vyos&apos; account.</Description>
- </Property>
- <Category>Appliance IPv4 Network Settings (WAN interface)</Category>
- <Property ovf:key="local-hostname" ovf:qualifiers="MinLen(0),MaxLen(65535)" ovf:type="string" ovf:userConfigurable="true" ovf:value="">
- <Label>Hostname</Label>
- <Description>The host name for this virtual machine.</Description>
- </Property>
- <Property ovf:key="ip0" ovf:type="string" ovf:userConfigurable="true">
- <Label>Network IPv4 Address</Label>
- <Description>The IPv4 address. Leave blank if DHCP is desired.</Description>
- </Property>
- <Property ovf:key="netmask0" ovf:type="string" ovf:userConfigurable="true">
- <Label>Network IPv4 Netmask</Label>
- <Description>The IPv4 netmask or prefix for this interface. Leave blank if DHCP is desired.</Description>
- </Property>
- <Property ovf:key="gateway" ovf:type="string" ovf:userConfigurable="true">
- <Label>Default Gateway v4</Label>
- <Description>Default gateway address. Leave blank if DHCP is desired.</Description>
- </Property>
- <Property ovf:key="DNS" ovf:type="string" ovf:userConfigurable="true">
- <Label>Domain Name Servers</Label>
- <Description>The domain name server IP Addresses for this VM (comma separated). Leave blank if DHCP is desired.</Description>
- </Property>
- <Property ovf:key="NTP" ovf:type="string" ovf:userConfigurable="true">
- <Label>Domain Time Servers</Label>
- <Description>NTP servers for this VM (comma separated). Leave blank if DHCP is desired.</Description>
- </Property>
- <Category>Appliance API Settings</Category>
- <Property ovf:key="APIKEY" ovf:type="string" ovf:userConfigurable="true">
- <Label>API key</Label>
- <Description>API key to access the VyOS api. If left blank the api wil not be enabled.</Description>
- </Property>
- <Property ovf:key="APIPORT" ovf:value="443" ovf:type="int" ovf:userConfigurable="true">
- <Label>API listening port</Label>
- <Description>API port to listen on for calls. Leave blank to keep it default '443'.</Description>
- </Property>
- <Property ovf:key="APIDEBUG" ovf:value="false" ovf:type="boolean" ovf:userConfigurable="true">
- <Label>API debug logging</Label>
- <Description>Enable API debug logging</Description>
- </Property>
- <Property ovf:key="user-data" ovf:type="string" ovf:userConfigurable="true" ovf:value="">
- <Label>Cloud-init User-Data</Label>
- <Description>User-Data, encoded with base64.</Description>
- </Property>
- </ProductSection>
- <ProductSection ovf:class="vm" ovf:required="false">
- <Info>VM specific properties</Info>
- <Property ovf:key="vmname" ovf:type="string" ovf:value="VyOS"/>
- </ProductSection>
- <AnnotationSection>
- <Info/>
- <Annotation>VyOS</Annotation>
- </AnnotationSection>
- <OperatingSystemSection ovf:id="96" ovf:version="6" vmw:osType="debian8_64Guest">
- <Info>The operating system installed</Info>
- <Description>Debian GNU/Linux 8 (64-bit)</Description>
- </OperatingSystemSection>
- <VirtualHardwareSection ovf:required="false" ovf:transport="com.vmware.guestInfo">
- <Info>Virtual Hardware Requirements</Info>
- <System>
- <vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
- <vssd:InstanceID>0</vssd:InstanceID>
- <vssd:VirtualSystemType>vmx-11</vssd:VirtualSystemType>
- </System>
- <Item configuration="1CPU-512MB">
- <rasd:AllocationUnits>hertz * 10^6</rasd:AllocationUnits>
- <rasd:Description>Number of virtual CPUs</rasd:Description>
- <rasd:ElementName xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData">1 virtual CPU</rasd:ElementName>
- <rasd:InstanceID xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData">1</rasd:InstanceID>
- <rasd:ResourceType>3</rasd:ResourceType>
- <rasd:VirtualQuantity>1</rasd:VirtualQuantity>
- </Item>
- <Item configuration="4CPU-16GB">
- <rasd:AllocationUnits>hertz * 10^6</rasd:AllocationUnits>
- <rasd:Description>Number of virtual CPUs</rasd:Description>
- <rasd:ElementName xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData">4 virtual CPUs</rasd:ElementName>
- <rasd:InstanceID xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData">1</rasd:InstanceID>
- <rasd:ResourceType>3</rasd:ResourceType>
- <rasd:VirtualQuantity>4</rasd:VirtualQuantity>
- </Item>
- <Item configuration="8CPU-32GB">
- <rasd:AllocationUnits>hertz * 10^6</rasd:AllocationUnits>
- <rasd:Description>Number of virtual CPUs</rasd:Description>
- <rasd:ElementName xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData">8 virtual CPUs</rasd:ElementName>
- <rasd:InstanceID xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData">1</rasd:InstanceID>
- <rasd:ResourceType>3</rasd:ResourceType>
- <rasd:VirtualQuantity>8</rasd:VirtualQuantity>
- </Item>
- <Item configuration="1CPU-512MB">
- <rasd:AllocationUnits>byte * 2^20</rasd:AllocationUnits>
- <rasd:Description>Memory Size</rasd:Description>
- <rasd:ElementName xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData">512 MB of memory</rasd:ElementName>
- <rasd:InstanceID xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData">2</rasd:InstanceID>
- <rasd:Reservation>512</rasd:Reservation>
- <rasd:ResourceType>4</rasd:ResourceType>
- <rasd:VirtualQuantity>512</rasd:VirtualQuantity>
- </Item>
- <Item configuration="4CPU-16GB">
- <rasd:AllocationUnits>byte * 2^20</rasd:AllocationUnits>
- <rasd:Description>Memory Size</rasd:Description>
- <rasd:ElementName xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData">16 GB of memory</rasd:ElementName>
- <rasd:InstanceID xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData">2</rasd:InstanceID>
- <rasd:Reservation>16384</rasd:Reservation>
- <rasd:ResourceType>4</rasd:ResourceType>
- <rasd:VirtualQuantity>16384</rasd:VirtualQuantity>
- </Item>
- <Item configuration="8CPU-32GB">
- <rasd:AllocationUnits>byte * 2^20</rasd:AllocationUnits>
- <rasd:Description>Memory Size</rasd:Description>
- <rasd:ElementName xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData">32 GB of memory</rasd:ElementName>
- <rasd:InstanceID xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData">2</rasd:InstanceID>
- <rasd:Reservation>32768</rasd:Reservation>
- <rasd:ResourceType>4</rasd:ResourceType>
- <rasd:VirtualQuantity>32768</rasd:VirtualQuantity>
- </Item>
- <Item>
- <rasd:Address xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData">0</rasd:Address>
- <rasd:ElementName xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData">SCSI Controller 0 - VMware Paravirtual SCSI</rasd:ElementName>
- <rasd:InstanceID xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData">3</rasd:InstanceID>
- <rasd:ResourceSubType>VirtualSCSI</rasd:ResourceSubType>
- <rasd:ResourceType>6</rasd:ResourceType>
- </Item>
- <Item>
- <rasd:AddressOnParent>0</rasd:AddressOnParent>
- <rasd:ElementName xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData">disk0</rasd:ElementName>
- <rasd:HostResource>ovf:/disk/vmdisk1</rasd:HostResource>
- <rasd:InstanceID xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData">4</rasd:InstanceID>
- <rasd:Parent>3</rasd:Parent>
- <rasd:ResourceType>17</rasd:ResourceType>
- </Item>
- <Item>
- <rasd:Address>0</rasd:Address>
- <rasd:ElementName xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData">IDE Controller 0</rasd:ElementName>
- <rasd:InstanceID xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData">5</rasd:InstanceID>
- <rasd:ResourceType>5</rasd:ResourceType>
- </Item>
- <Item>
- <rasd:AddressOnParent>0</rasd:AddressOnParent>
- <rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
- <rasd:ElementName xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData">CD/DVD Drive 1</rasd:ElementName>
- <rasd:InstanceID xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData">6</rasd:InstanceID>
- <rasd:Parent>5</rasd:Parent>
- <rasd:ResourceType>15</rasd:ResourceType>
- </Item>
- <ovf:Item>
- <rasd:AddressOnParent>7</rasd:AddressOnParent>
- <rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
- <rasd:Connection>WAN</rasd:Connection>
- <rasd:Description>NIC representing WAN</rasd:Description>
- <rasd:ElementName>WAN</rasd:ElementName>
- <rasd:InstanceID>7</rasd:InstanceID>
- <rasd:ResourceSubType>vmxnet3</rasd:ResourceSubType>
- <rasd:ResourceType>10</rasd:ResourceType>
- </ovf:Item>
- <ovf:Item>
- <rasd:AddressOnParent>8</rasd:AddressOnParent>
- <rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
- <rasd:Connection>LAN</rasd:Connection>
- <rasd:Description>NIC representing LAN</rasd:Description>
- <rasd:ElementName>LAN</rasd:ElementName>
- <rasd:InstanceID>8</rasd:InstanceID>
- <rasd:ResourceSubType>vmxnet3</rasd:ResourceSubType>
- <rasd:ResourceType>10</rasd:ResourceType>
- </ovf:Item>
- <vmw:Config ovf:required="false" vmw:key="cpuHotAddEnabled" vmw:value="true"/>
- <vmw:Config ovf:required="false" vmw:key="memoryHotAddEnabled" vmw:value="true"/>
- <vmw:ExtraConfig ovf:required="false" vmw:key="sched.mem.pin" vmw:value="TRUE"/>
- </VirtualHardwareSection>
- </VirtualSystem>
-</ovf:Envelope>
diff --git a/scripts/vhd.py b/scripts/vhd.py
deleted file mode 100755
index 6a26892..0000000
--- 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 cc25d96..0000000
--- a/tools/armada-388-clearfog.dtb
+++ /dev/null
Binary files differ
diff --git a/tools/cloud-init/99-debug-user.chroot b/tools/cloud-init/99-debug-user.chroot
deleted file mode 100755
index 354b46a..0000000
--- 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 e576c8a..0000000
--- 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 ac4ffea..0000000
--- 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 5af780a..0000000
--- 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 a4f3206..0000000
--- 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 0575be1..0000000
--- 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 d5cb4c0..0000000
--- 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 4f7bbd8..0000000
--- 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 1ceff6a..0000000
--- 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 1b85056..0000000
--- 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 1de525c..0000000
--- 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 c3a0aa5..0000000
--- 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 91320a5..0000000
--- 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 a5eeb63..0000000
--- 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 479924c..0000000
--- 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 d5cb4c0..0000000
--- 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 f9c9cba..0000000
--- 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 8b7cdae..0000000
--- 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 b021ebd..0000000
--- 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 1ea4d75..0000000
--- a/tools/u-boot-spl.kwb
+++ /dev/null
Binary files differ