partitioning: Rely on the btrfs default subvolume for remounting

This allows changes to the default subvolume in `btrfs_root_add_subvolumes`
 to propagate as needed into the final image.
This commit is contained in:
Franklyn Tackitt
2025-04-29 08:51:22 -07:00
committed by Igor
parent 9f37e55980
commit 76470b1dad

View File

@@ -353,7 +353,7 @@ function prepare_partitions() {
run_host_command_logged umount $rootdevice
display_alert "Remounting rootfs" "$rootdevice (UUID=${ROOT_PART_UUID})"
run_host_command_logged mount -odefaults,${mountopts[$ROOTFS_TYPE]},subvol=$btrfs_root_subvolume $rootdevice $MOUNT/
run_host_command_logged mount -odefaults,${mountopts[$ROOTFS_TYPE]} $rootdevice $MOUNT/
fi
rootfs="UUID=$(blkid -s UUID -o value $rootdevice)"
echo "$rootfs / ${mkfs[$ROOTFS_TYPE]} defaults,${mountopts[$ROOTFS_TYPE]} 0 1" >> $SDCARD/etc/fstab