Skip to content

Commit 79071e9

Browse files
Support Armbian by modifying armbianEnv.txt
On Armbian, the kernel commandline (or at least the root device to use) is stored in armbianEnv.txt rather than cmdline.txt, so update that if it exists and cmdline.txt does not. The actual operation on this file is just replacing UUIDs inside the file, so it works even though the syntax of the file is different.
1 parent 15ef588 commit 79071e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rpi-clone

+4
Original file line numberDiff line numberDiff line change
@@ -1791,6 +1791,10 @@ qecho ""
17911791
fstab=${clone}/etc/fstab
17921792
cmdline_txt=/boot/cmdline.txt
17931793
cmdline_boot=/boot/cmdline.boot
1794+
if [ ! -f "${clone}${cmdline_txt}" ]; then
1795+
cmdline_txt=/boot/armbianEnv.txt
1796+
cmdline_boot=/boot/armbianEnv.boot
1797+
fi
17941798

17951799
if [ -f "${clone}${cmdline_txt}" ]
17961800
then

0 commit comments

Comments
 (0)