summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rw-r--r--data/defaults.toml2
-rwxr-xr-xdata/live-build-config/hooks/live/18-enable-disable_services.chroot1
-rw-r--r--packages/linux-kernel/arch/x86/configs/vyos_defconfig5
-rwxr-xr-xscripts/check-qemu-install55
5 files changed, 32 insertions, 36 deletions
diff --git a/Makefile b/Makefile
index 5ba003d0..f9b5903f 100644
--- a/Makefile
+++ b/Makefile
@@ -54,6 +54,11 @@ testc: checkiso
testraid: checkiso
scripts/check-qemu-install --debug --configd --raid --configtest build/live-image-amd64.hybrid.iso
+.PHONY: qemu-live
+.ONESHELL:
+qemu-live: checkiso
+ scripts/check-qemu-install --qemu-cmd build/live-image-amd64.hybrid.iso
+
.PHONY: clean
.ONESHELL:
clean:
diff --git a/data/defaults.toml b/data/defaults.toml
index 5147b975..343dc8a8 100644
--- a/data/defaults.toml
+++ b/data/defaults.toml
@@ -14,7 +14,7 @@ vyos_mirror = "https://rolling-packages.vyos.net/current"
vyos_branch = "current"
release_train = "current"
-kernel_version = "6.1.62"
+kernel_version = "6.1.63"
bootloaders = "syslinux,grub-efi"
squashfs_compression_type = "xz -Xbcj x86 -b 256k -always-use-fragments -no-recovery"
diff --git a/data/live-build-config/hooks/live/18-enable-disable_services.chroot b/data/live-build-config/hooks/live/18-enable-disable_services.chroot
index 26bdfc7f..d709907d 100755
--- a/data/live-build-config/hooks/live/18-enable-disable_services.chroot
+++ b/data/live-build-config/hooks/live/18-enable-disable_services.chroot
@@ -78,6 +78,7 @@ systemctl enable vyos-hostsd.service
systemctl enable acpid.service
systemctl enable vyos-router.service
systemctl enable vyos-configd.service
+systemctl enable vyos-grub-update.service
echo I: Masking services
systemctl mask systemd-journald-audit.socket
diff --git a/packages/linux-kernel/arch/x86/configs/vyos_defconfig b/packages/linux-kernel/arch/x86/configs/vyos_defconfig
index 4efb9579..1496b152 100644
--- a/packages/linux-kernel/arch/x86/configs/vyos_defconfig
+++ b/packages/linux-kernel/arch/x86/configs/vyos_defconfig
@@ -4881,7 +4881,10 @@ CONFIG_UIO_PCI_GENERIC=m
# CONFIG_UIO_PRUSS is not set
# CONFIG_UIO_MF624 is not set
# CONFIG_UIO_HV_GENERIC is not set
-# CONFIG_VFIO is not set
+CONFIG_VFIO=m
+CONFIG_VFIO_PCI=m
+CONFIG_VFIO_MDEV=m
+CONFIG_MLX5_VFIO_PCI=m
# CONFIG_VIRT_DRIVERS is not set
CONFIG_VIRTIO_ANCHOR=y
CONFIG_VIRTIO=m
diff --git a/scripts/check-qemu-install b/scripts/check-qemu-install
index 72ef4696..e8a7cc6f 100755
--- a/scripts/check-qemu-install
+++ b/scripts/check-qemu-install
@@ -272,7 +272,7 @@ gen_disk(args.disk)
if args.qemu_cmd:
tmp = get_qemu_cmd('TESTVM', kvm, args.uefi, args.disk, diskname_raid, args.iso)
- print(tmp)
+ os.system(tmp)
exit(0)
test_timeout = 3 *3600 # 3 hours (in seconds)
@@ -306,42 +306,29 @@ try:
#################################################
log.info('Starting installer')
c.sendline('install image')
- c.expect('\nWould you like to continue?.*:')
- c.sendline('yes')
-
- if args.raid:
- c.expect('\nWould you like to configure RAID-1 mirroring on them?.*:')
- c.sendline('yes')
- # Erase all data on disks
- c.expect('\nAre you sure you want to do this?.*:')
- c.sendline('yes')
- else:
- log.info('Partitioning disk')
- c.expect('\nPartition.*:')
- c.sendline('')
- c.expect('\nInstall the image on.*:')
- c.sendline('')
- c.expect(r'\nContinue\?.*:')
- c.sendline('Yes')
- c.expect('\nHow big of a root partition should I create?.*:')
- c.sendline('')
-
- log.info('Disk(s) partitioned, installing...')
- c.expect('\nWhat would you like to name this image?.*:', timeout=600)
+ c.expect('\nWould you like to continue?.*')
+ c.sendline('y')
+ c.expect('\nWhat would you like to name this image?.*')
c.sendline('')
- log.info('Copying files')
- c.expect('\nWhich one should I copy to.*:', timeout=600)
+ c.expect(f'\nPlease enter a password for the "{default_user}" user.*')
c.sendline('')
- log.info('Files Copied!')
- c.expect('\nEnter password for user.*:')
- c.sendline(default_user)
- c.expect('\nRetype password for user.*:')
- c.sendline(default_password)
+ c.expect('\nWhat console should be used by default?.*')
+ c.sendline('S')
- if not args.raid:
- c.expect('\nWhich drive should GRUB modify the boot partition on.*:')
+ if args.raid:
+ c.expect('\nWould you like to configure RAID-1 mirroring??.*')
+ c.sendline('y')
+ c.expect('\nWould you like to configure RAID-1 mirroring on them?.*')
+ c.sendline('y')
+ c.expect('\nInstallation will delete all data on both drives. Continue?.*')
+ c.sendline('y')
+ else:
+ c.expect('\nWhich one should be used for installation?.*')
c.sendline('')
- c.expect(op_mode_prompt)
+ c.expect('\nInstallation will delete all data on the drive. Continue?.*')
+ c.sendline('y')
+ c.expect('\nWould you like to use all the free space on the drive?.*')
+ c.sendline('y')
log.info('system installed, shutting down')
@@ -458,7 +445,7 @@ try:
c.expect(op_mode_prompt)
log.info('Add member to RAID1 (md0)')
- c.sendline('add raid md0 by-id member drive-hd1-part1')
+ c.sendline('add raid md0 by-id member drive-hd1-part3')
c.expect(op_mode_prompt)
log.info('Now we need to wait for re-sync to complete')