Skip to content

Commit d610218

Browse files
Apply cmdline/fstab on non-mounted partitions too
This facilitates the case where some of the non-mounted partitions contain a second operating system (possibly for a different system/board), and updates these so that system also stays working.
1 parent f083e6b commit d610218

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rpi-clone

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1821,6 +1821,11 @@ do
18211821
mount_partition $dst_dev $clone "$clone_src"
18221822
unmount_list="$clone_src $clone"
18231823
rsync_file_system "${clone_src}/" "${clone}" ""
1824+
1825+
# This partition *might* be a boot or root partition, so try fixups for both
1826+
fixup_boot_partition "partition $p " "${clone_src}" "${clone}"
1827+
fixup_device_references_in_file "partition $p " "${clone}" /etc/fstab
1828+
18241829
unmount_list "$unmount_list"
18251830
fi
18261831
done

0 commit comments

Comments
 (0)