Fix mounting root subvolume in manual subvolume creation

merge-requests/273/head
Chrysostomus 7 years ago
parent ad253a3671
commit 8426d6374c

@ -990,7 +990,7 @@ btrfs_subvolumes()
# Mount subvolumes
umount /mnt
# Mount the first subvolume as /
mount -o $(cat ${MOUNT_OPTS}),subvol="$(awk '{print $1}' /tmp/.subvols)" /dev/"$(cat /tmp/.root_partition)" /mnt
mount -o $(cat ${MOUNT_OPTS}),subvol="$(awk '{print $1}' /tmp/.subvols)" "$(cat /tmp/.root_partition)" /mnt
# Remove the first subvolume from the subvolume list
sed -i -r 's/(\s+)?\S+//1' /tmp/.subvols
# Loop to mount all created subvolumes

Loading…
Cancel
Save