269 |
grubTest grub.13 setdefaultindex/g.13.1 --set-default-index=1 |
grubTest grub.13 setdefaultindex/g.13.1 --set-default-index=1 |
270 |
grubTest grub.13 setdefaultindex/g.13.9 --set-default-index=9 |
grubTest grub.13 setdefaultindex/g.13.9 --set-default-index=9 |
271 |
|
|
272 |
|
testing="GRUB add initrd" |
273 |
|
grubTest grub.14 add/g1.7 --boot-filesystem=/ --update-kernel=/vmlinuz-4.0.0-0.rc4.git1.4.fc23.x86_64 --initrd /initramfs-4.0.0-0.rc4.git1.4.fc23.x86_64.img '--args= LANG=en_US.UTF-8' '--title=Fedora (4.0.0-0.rc4.git1.4.fc23.x86_64) 23 (Rawhide)' |
274 |
|
|
275 |
testing="GRUB display default index" |
testing="GRUB display default index" |
276 |
grubDisplayTest grub.1 defaultindex/0 --default-index |
grubDisplayTest grub.1 defaultindex/0 --default-index |
277 |
grubDisplayTest grub.2 defaultindex/0 --default-index |
grubDisplayTest grub.2 defaultindex/0 --default-index |
298 |
grubDisplayTest grub.10 defaulttitle/g.10 --default-title |
grubDisplayTest grub.10 defaulttitle/g.10 --default-title |
299 |
grubDisplayTest grub.11 defaulttitle/g.11 --default-title |
grubDisplayTest grub.11 defaulttitle/g.11 --default-title |
300 |
|
|
301 |
|
testing="GRUB display default kernel" |
302 |
|
grubDisplayTest grub.1 defaultkernel/g.1 --boot-filesystem=/boot --default-kernel |
303 |
|
grubDisplayTest grub.1 defaultkernel/g.2 --boot-filesystem=/ --default-kernel |
304 |
|
|
305 |
testing="LILO default directive" |
testing="LILO default directive" |
306 |
liloTest lilo.1 default/l1.1 --set-default=/boot/vmlinuz-2.4.18-4 |
liloTest lilo.1 default/l1.1 --set-default=/boot/vmlinuz-2.4.18-4 |
307 |
liloTest lilo.1 default/l1.2 --remove-kernel=/boot/vmlinuz-2.4.18-4smp |
liloTest lilo.1 default/l1.2 --remove-kernel=/boot/vmlinuz-2.4.18-4smp |
309 |
--copy-default |
--copy-default |
310 |
liloTest lilo.1 default/l1.4 --add-kernel /boot/kernel --title label \ |
liloTest lilo.1 default/l1.4 --add-kernel /boot/kernel --title label \ |
311 |
--copy-default --make-default |
--copy-default --make-default |
312 |
|
liloDisplayTest lilo.1 defaultkernel/l1.1 --default-kernel |
313 |
|
|
314 |
testing="Z/IPL default directive" |
testing="Z/IPL default directive" |
315 |
ziplTest zipl.1 default/z1.1 --add-kernel /boot/new-kernel --title test |
ziplTest zipl.1 default/z1.1 --add-kernel /boot/new-kernel --title test |
316 |
ziplTest zipl.1 default/z1.2 --add-kernel /boot/new-kernel --title test --make-default |
ziplTest zipl.1 default/z1.2 --add-kernel /boot/new-kernel --title test --make-default |
317 |
|
testing="Z/IPL default index directive" |
318 |
|
ziplTest zipl.2 default/z2.1 --set-default-index=0 |
319 |
|
testing="Z/IPL display default index" |
320 |
|
ziplDisplayTest zipl.1 defaultindex/0 --default-index |
321 |
|
testing="Z/IPL display default title" |
322 |
|
ziplDisplayTest zipl.1 defaulttitle/z.1 --default-title |
323 |
|
testing="Z/IPL display default kernel" |
324 |
|
ziplDisplayTest zipl.1 defaultkernel/z.1 --default-kernel |
325 |
|
testing="Z/IPL display entry information" |
326 |
|
ziplDisplayTest zipl.2 info/z2.1 --info=1 |
327 |
|
|
328 |
testing="GRUB fallback directive" |
testing="GRUB fallback directive" |
329 |
grubTest grub.5 fallback/g5.1 --remove-kernel=/boot/vmlinuz-2.4.7-ac3 \ |
grubTest grub.5 fallback/g5.1 --remove-kernel=/boot/vmlinuz-2.4.7-ac3 \ |
386 |
--args "root=/dev/hdd1 hdd=notide-scsi" |
--args "root=/dev/hdd1 hdd=notide-scsi" |
387 |
grubTest grub.3 updargs/g3.4 --update-kernel=ALL --remove-args="hdd" |
grubTest grub.3 updargs/g3.4 --update-kernel=ALL --remove-args="hdd" |
388 |
grubTest grub.3 updargs/g3.4 --update-kernel=ALL --remove-args="hdd=ide-scsi" |
grubTest grub.3 updargs/g3.4 --update-kernel=ALL --remove-args="hdd=ide-scsi" |
389 |
grubTest grub.3 updargs/g3.4 --update-kernel=ALL --remove-args="hdd=foobar" |
grubTest grub.3 updargs/g3.5 --update-kernel=ALL --remove-args="hdd=foobar" |
390 |
grubTest grub.3 updargs/g3.7 --update-kernel=ALL \ |
grubTest grub.3 updargs/g3.7 --update-kernel=ALL \ |
391 |
--remove-args="hdd root ro" |
--remove-args="hdd root ro" |
392 |
grubTest grub.7 updargs/g7.2 --boot-filesystem=/ \ |
grubTest grub.7 updargs/g7.2 --boot-filesystem=/ \ |
489 |
grubTest grub.11 add/g11.1 --add-kernel=/boot/new-kernel.img --title='title' \ |
grubTest grub.11 add/g11.1 --add-kernel=/boot/new-kernel.img --title='title' \ |
490 |
--initrd=/boot/new-initrd --boot-filesystem=/boot --copy-default \ |
--initrd=/boot/new-initrd --boot-filesystem=/boot --copy-default \ |
491 |
--args='console=tty0 console=ttyS1,9600n81 single' |
--args='console=tty0 console=ttyS1,9600n81 single' |
492 |
|
grubTest grub.1 add/g1.1 --add-kernel=/boot/new-kernel.img --title='title' \ |
493 |
|
--initrd=/boot/new-initrd --boot-filesystem=/ --set-index 0 |
494 |
|
grubTest grub.1 add/g1.17 --add-kernel=/boot/new-kernel.img --title='title' \ |
495 |
|
--initrd=/boot/new-initrd --boot-filesystem=/ --set-index 1 |
496 |
|
grubTest grub.1 add/g1.17 --add-kernel=/boot/new-kernel.img --title='title' \ |
497 |
|
--initrd=/boot/new-initrd --boot-filesystem=/ --set-index 2 |
498 |
|
grubTest grub.15 add/g1.10 --add-kernel=/boot/new-kernel.img --title='title' \ |
499 |
|
--initrd=/boot/new-initrd --boot-filesystem=/ --set-index 0 |
500 |
|
grubTest grub.15 add/g1.8 --add-kernel=/boot/new-kernel.img --title='title' \ |
501 |
|
--initrd=/boot/new-initrd --boot-filesystem=/ --set-index 1 |
502 |
|
grubTest grub.15 add/g1.9 --add-kernel=/boot/new-kernel.img --title='title' \ |
503 |
|
--initrd=/boot/new-initrd --boot-filesystem=/ --set-index 2 |
504 |
|
grubTest grub.15 add/g1.9 --add-kernel=/boot/new-kernel.img --title='title' \ |
505 |
|
--initrd=/boot/new-initrd --boot-filesystem=/ --set-index 5 |
506 |
|
|
507 |
testgrub2=n |
testgrub2=n |
508 |
ARCH=$(uname -m | sed s,i[3456789]86,ia32,) |
ARCH=$(uname -m | sed s,i[3456789]86,ia32,) |
555 |
--devtree='/boot/dtb-2.6.38.8-32.fc15.x86_64/foobarbaz.dtb' \ |
--devtree='/boot/dtb-2.6.38.8-32.fc15.x86_64/foobarbaz.dtb' \ |
556 |
--initrd=/boot/initramfs-2.6.38.8-32.fc15.x86_64.img \ |
--initrd=/boot/initramfs-2.6.38.8-32.fc15.x86_64.img \ |
557 |
--boot-filesystem=/boot/ --copy-default --efi |
--boot-filesystem=/boot/ --copy-default --efi |
558 |
grub2Test grub2.14 add/g2-1.14 \ |
grub2Test grub2.15 add/g2-1.15 \ |
559 |
--add-kernel=/boot/vmlinuz-0-rescue-5a94251776a14678911d4ae0949500f5 \ |
--add-kernel=/boot/vmlinuz-0-rescue-5a94251776a14678911d4ae0949500f5 \ |
560 |
--initrd /boot/initramfs-0-rescue-5a94251776a14678911d4ae0949500f5.img \ |
--initrd /boot/initramfs-0-rescue-5a94251776a14678911d4ae0949500f5.img \ |
561 |
--copy-default --title "Fedora 21 Rescue" --args=root=/fooooo \ |
--copy-default --title "Fedora 21 Rescue" --args=root=/fooooo \ |
562 |
--remove-kernel=wtf --boot-filesystem=/boot/ |
--remove-kernel=wtf --boot-filesystem=/boot/ --efi |
563 |
|
|
564 |
|
# a grub2 add with a "set" of the form: set foo="bar=1,2". bz#1152550 |
565 |
|
# has this being emitted as: set foo="bar=1,2"=1,2" |
566 |
|
# which is wrong. |
567 |
|
grub2Test grub2.16 add/g2-1.16 \ |
568 |
|
--add-kernel=/boot/vmlinuz-foo \ |
569 |
|
--copy-default --title 'Red Hat Enterprise Linux Server' \ |
570 |
|
--args=root=/dev/mapper/foo-- |
571 |
|
|
572 |
|
grub2Test grub2.19 remove/g2.19 --env grubenv.4 \ |
573 |
|
--remove-kernel=/boot/vmlinuz-2.6.38.2-9.fc15.x86_64 \ |
574 |
|
--boot-filesystem=/boot/ |
575 |
|
commandTest "saved_default output" \ |
576 |
|
"grub2-editenv test/grub2-support_files/env_temp list" \ |
577 |
|
"saved_entry=Linux, with Fedora 2.6.38.8-32.fc15.x86_64" |
578 |
|
|
579 |
|
# copy a stanza and add arguments as well, while using --set-index= |
580 |
|
testing="GRUB2 add stanza and new args with --set-index=" |
581 |
|
grub2Test grub2.18 add/g2-1.18 --env grubenv.3 \ |
582 |
|
--add-kernel=/boot/vmlinuz-3.10.0-327.22.2.el7.x86_64.debug \ |
583 |
|
--boot-filesystem=/boot --copy-default \ |
584 |
|
--title "Red Hat Enterprise Linux Server (3.10.0-327.22.2.el7.x86_64.debug) 7.2 (Maipo) with debugging" \ |
585 |
|
--args="root=/dev/mapper/rhel_team--area--222-root systemd.log_level=debug systemd.log_target=kmsg" \ |
586 |
|
--set-index=1 |
587 |
|
|
588 |
testing="GRUB2 add initrd" |
testing="GRUB2 add initrd" |
589 |
grub2Test grub2.2 add/g2-1.4 --update-kernel=/boot/new-kernel.img \ |
grub2Test grub2.2 add/g2-1.4 --update-kernel=/boot/new-kernel.img \ |
675 |
testing="GRUB2 add initrd with linux16" |
testing="GRUB2 add initrd with linux16" |
676 |
grub2Test grub2.11 add/g2-1.11 --update-kernel=/boot/new-kernel.img \ |
grub2Test grub2.11 add/g2-1.11 --update-kernel=/boot/new-kernel.img \ |
677 |
--initrd=/boot/new-initrd --boot-filesystem=/boot/ |
--initrd=/boot/new-initrd --boot-filesystem=/boot/ |
678 |
|
|
679 |
|
testing="GRUB2 add rescue with linux16" |
680 |
|
grub2Test grub2.14 add/g2-1.14 \ |
681 |
|
--add-kernel=/boot/vmlinuz-0-rescue-5a94251776a14678911d4ae0949500f5 \ |
682 |
|
--initrd /boot/initramfs-0-rescue-5a94251776a14678911d4ae0949500f5.img \ |
683 |
|
--copy-default --title "Fedora 21 Rescue" --args=root=/fooooo \ |
684 |
|
--remove-kernel=wtf --boot-filesystem=/boot/ |
685 |
|
|
686 |
|
testing="GRUB2 add kernel with boot on btrfs subvol" |
687 |
|
grub2Test grub2.20 add/g2-1.20 --add-kernel=/boot/new-kernel.img \ |
688 |
|
--title='title' \ |
689 |
|
--boot-filesystem=/boot/ \ |
690 |
|
--copy-default \ |
691 |
|
--mounts='test/grub2-support_files/g2.20-mounts' |
692 |
|
|
693 |
|
testing="GRUB2 add initrd with boot on btrfs subvol" |
694 |
|
grub2Test grub2.21 add/g2-1.21 --update-kernel=/boot/new-kernel.img \ |
695 |
|
--initrd=/boot/new-initrd --boot-filesystem=/boot/ \ |
696 |
|
--mounts='test/grub2-support_files/g2.21-mounts' |
697 |
|
|
698 |
|
testing="GRUB2 add kernel with rootfs on btrfs subvol and boot directory" |
699 |
|
grub2Test grub2.22 add/g2-1.22 --add-kernel=/boot/new-kernel.img \ |
700 |
|
--title='title' \ |
701 |
|
--boot-filesystem= \ |
702 |
|
--copy-default \ |
703 |
|
--mounts='test/grub2-support_files/g2.22-mounts' |
704 |
|
|
705 |
|
testing="GRUB2 add initrd with rootfs on btrfs subvol and boot directory" |
706 |
|
grub2Test grub2.23 add/g2-1.23 --update-kernel=/boot/new-kernel.img \ |
707 |
|
--initrd=/boot/new-initrd --boot-filesystem= \ |
708 |
|
--mounts='test/grub2-support_files/g2.23-mounts' |
709 |
|
|
710 |
|
testing="GRUB2 add kernel and initrd with boot on btrfs subvol" |
711 |
|
grub2Test grub2.24 add/g2-1.24 --add-kernel=/boot/new-kernel.img \ |
712 |
|
--title='title' \ |
713 |
|
--initrd=/boot/new-initrd \ |
714 |
|
--boot-filesystem=/boot/ \ |
715 |
|
--copy-default \ |
716 |
|
--mounts='test/grub2-support_files/g2.24-mounts' |
717 |
|
|
718 |
|
testing="GRUB2 add kernel and initrd with rootfs on btrfs subvol and boot directory" |
719 |
|
grub2Test grub2.25 add/g2-1.25 --add-kernel=/boot/new-kernel.img \ |
720 |
|
--title='title' \ |
721 |
|
--initrd=/boot/new-initrd \ |
722 |
|
--boot-filesystem= \ |
723 |
|
--copy-default \ |
724 |
|
--mounts='test/grub2-support_files/g2.25-mounts' |
725 |
fi |
fi |
726 |
fi |
fi |
727 |
|
|
738 |
ziplTest zipl.1 add/z1.2 --add-kernel=/boot/new-kernel.img --title test --copy-default |
ziplTest zipl.1 add/z1.2 --add-kernel=/boot/new-kernel.img --title test --copy-default |
739 |
|
|
740 |
testing="Extlinux add kernel" |
testing="Extlinux add kernel" |
741 |
extlinuxTest extlinux.1 add/extlinux1.1 --add-kernel=/boot/new-kernel.img --title='title' \ |
extlinuxTest extlinux.1 add/extlinux1.1 --add-kernel=/boot/new-kernel.img \ |
742 |
--initrd=/boot/new-initrd --boot-filesystem=/ |
--title='title' --initrd=/boot/new-initrd --boot-filesystem=/ |
743 |
extlinuxTest extlinux.1 add/extlinux1.2 --add-kernel=/boot/new-kernel.img --title='title' \ |
extlinuxTest extlinux.1 add/extlinux1.2 --add-kernel=/boot/new-kernel.img \ |
744 |
--initrd=/boot/new-initrd --boot-filesystem=/boot |
--title='title' --initrd=/boot/new-initrd --boot-filesystem=/boot |
745 |
extlinuxTest extlinux.1 add/extlinux1.3 --add-kernel=/boot/new-kernel.img --title='title' \ |
extlinuxTest extlinux.1 add/extlinux1.3 --add-kernel=/boot/new-kernel.img \ |
746 |
--initrd=/boot/new-initrd --boot-filesystem=/ --copy-default |
--title='title' --initrd=/boot/new-initrd --boot-filesystem=/ \ |
747 |
extlinuxTest extlinux.1 add/extlinux1.4 --add-kernel=/boot/new-kernel.img --title='title' \ |
--copy-default |
748 |
--initrd=/boot/new-initrd --boot-filesystem=/boot --copy-default |
extlinuxTest extlinux.1 add/extlinux1.4 --add-kernel=/boot/new-kernel.img \ |
749 |
extlinuxTest extlinux.2 add/extlinux2.1 --add-kernel=/boot/vmlinuz-3.12.0-2.fc21.i686 \ |
--title='title' --initrd=/boot/new-initrd --boot-filesystem=/boot \ |
750 |
--initrd=/boot/initrd-3.12.0-2.fc21.i686-new.img --boot-filesystem=/boot --copy-default \ |
--copy-default |
751 |
--title="Fedora (3.12.0-2.fc21.i686) 20 (Heisenbug)" \ |
extlinuxTest extlinux.2 add/extlinux2.1 \ |
752 |
|
--add-kernel=/boot/vmlinuz-3.12.0-2.fc21.i686 \ |
753 |
|
--initrd=/boot/initrd-3.12.0-2.fc21.i686-new.img \ |
754 |
|
--boot-filesystem=/boot --copy-default \ |
755 |
|
--title="Fedora (3.12.0-2.fc21.i686) 20 (Heisenbug)" \ |
756 |
--remove-kernel="TITLE=Fedora (3.12.0-2.fc21.i686) 20 (Heisenbug)" |
--remove-kernel="TITLE=Fedora (3.12.0-2.fc21.i686) 20 (Heisenbug)" |
757 |
|
extlinuxTest extlinux.5 add/extlinux5.1 \ |
758 |
|
--add-kernel=/boot/vmlinuz-3.15.0-0.rc1.git4.1.fc21.armv7hl \ |
759 |
|
--devtree='/boot/dtb-3.15.0-0.rc1.git4.1.fc21.armv7hl/imx6q-cubox-i.dtb' \ |
760 |
|
--initrd=/boot/initramfs-3.15.0-0.rc1.git4.1.fc21.armv7hl.img \ |
761 |
|
--boot-filesystem=/boot --copy-default \ |
762 |
|
--title="Fedora (3.15.0-0.rc1.git4.1.fc21.armv7hl) 21 (Rawhide)" \ |
763 |
|
--remove-kernel="TITLE=Fedora (3.12.0-0.fc21.armv7hl) 21 (Rawhide)" |
764 |
|
extlinuxTest extlinux.6 add/extlinux6.1 \ |
765 |
|
--add-kernel=/boot/vmlinuz-3.15.0-0.rc1.git4.1.fc21.armv7hl \ |
766 |
|
--devtreedir='/boot/dtb-3.15.0-0.rc1.git4.1.fc21.armv7hl/' \ |
767 |
|
--initrd=/boot/initramfs-3.15.0-0.rc1.git4.1.fc21.armv7hl.img \ |
768 |
|
--boot-filesystem=/boot --copy-default \ |
769 |
|
--title="Fedora (3.15.0-0.rc1.git4.1.fc21.armv7hl) 21 (Rawhide)" \ |
770 |
|
--remove-kernel="TITLE=Fedora (3.12.0-0.fc21.armv7hl) 21 (Rawhide)" |
771 |
|
|
772 |
testing="LILO long titles" |
testing="LILO long titles" |
773 |
liloTest lilo.1 longtitle/l1.1 --add-kernel=/boot/new-kernel.img \ |
liloTest lilo.1 longtitle/l1.1 --add-kernel=/boot/new-kernel.img \ |