mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
fix install mode SPI for extlinux.conf (#4553)
This commit is contained in:
@@ -416,7 +416,12 @@ create_armbian()
|
||||
# Boot from SPI, root = SATA / USB
|
||||
#
|
||||
if [[ $1 == *spi* ]]; then
|
||||
sed -e 's,rootdev=.*,rootdev='"$satauuid"',g' -i "${TempDir}"/rootfs/boot/armbianEnv.txt
|
||||
if [[ -f "${TempDir}"/rootfs/boot/armbianEnv.txt ]]; then
|
||||
sed -e 's,rootdev=.*,rootdev='"$satauuid"',g' -i "${TempDir}"/rootfs/boot/armbianEnv.txt
|
||||
fi
|
||||
if [[ -f "${TempDir}"/rootfs/boot/extlinux/extlinux.conf ]]; then
|
||||
sed -e 's,root='"$root_uuid"',root='"$satauuid"',g' -i "${TempDir}"/rootfs/boot/extlinux/extlinux.conf
|
||||
fi
|
||||
echo "$satauuid / $FilesystemChoosen ${mountopts[$FilesystemChoosen]}" >> "${TempDir}"/rootfs/etc/fstab
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user