From 4dc0fcef55f5610af47b83febae7a641b6c6c8e5 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Tue, 30 May 2017 21:46:26 -0700 Subject: [PATCH] fix chboot bug introduced in its last change --- fai/config/files/boot/chboot/DEFAULT | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fai/config/files/boot/chboot/DEFAULT b/fai/config/files/boot/chboot/DEFAULT index a8aa584..a7b450a 100755 --- a/fai/config/files/boot/chboot/DEFAULT +++ b/fai/config/files/boot/chboot/DEFAULT @@ -93,8 +93,8 @@ fi #### begin initial error checking ##### -if ! btrfs subvolume list $mnt | grep "_$distro$" &>/dev/null; then - echo "$0: error: _$distro$ not found in btrfs subvolume list $mnt:" +if ! btrfs subvolume list $mnt | grep "$distro$" &>/dev/null; then + echo "$0: error: $distro not found in btrfs subvolume list $mnt:" btrfs subvolume list $mnt exit 1 fi @@ -119,7 +119,7 @@ e grub-bios-setup -d $mount_point/grub/i386-pc -s -m $mount_point/grub/device.ma e umount $mount_point e mount $boot_disk$grub_extn $mount_point -e grub-editenv $mount_point/grubenv set last_boot=$distro +e grub-editenv $mount_point/grubenv set last_boot=/$distro e grub-editenv $mount_point/grubenv set did_fai_check=true e umount $mount_point e rmdir $mount_point -- 2.30.2