Skip to content

Commit

Permalink
Support Armbian by modifying armbianEnv.txt
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
matthijskooijman committed Mar 15, 2022
1 parent 15ef588 commit 79071e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rpi-clone
Original file line number Diff line number Diff line change
Expand Up @@ -1791,6 +1791,10 @@ qecho ""
fstab=${clone}/etc/fstab
cmdline_txt=/boot/cmdline.txt
cmdline_boot=/boot/cmdline.boot
if [ ! -f "${clone}${cmdline_txt}" ]; then
cmdline_txt=/boot/armbianEnv.txt
cmdline_boot=/boot/armbianEnv.boot
fi

if [ -f "${clone}${cmdline_txt}" ]
then
Expand Down

0 comments on commit 79071e9

Please sign in to comment.