#3 Set GRUB2 default on beadm activate
Issue #3. Closes #18 (closed).
A (unit) test:
vozhx-thinkpad / # beadm activate -v funtoo-1
Command: "grub-set-default "Gentoo GNU/Linux - sm/ROOT/funtoo-1""
Activated successfully
vozhx-thinkpad / # cat /boot/grub/grubenv
# GRUB Environment Block
saved_entry=Gentoo GNU/Linux - sm/ROOT/funtoo-1
########<...>##
A system test:
- Set
GRUB_DEFAULT=savedin/etc/default/grub. beadm create newbeadm activate new- (was already working)
zpool get -H -o value bootfs ci==ci/ROOT/new - Reboot and check that the
Gentoo GNU/Linux - ci/ROOT/newentry is the default - Choose (boot) the entry
-
mount | grep ' / ' | cut -d\ -f1==ci/ROOT/new
A system test for ci!10 (merged):
- Points
{1..3,5,6} beadm activate old- Points
{4..7}withci/ROOT/old
Edited by Witaut Bajaryn