Skip to content

Commit ec4405b

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 0505ad9 commit ec4405b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rpi-clone

Lines changed: 4 additions & 0 deletions
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)