scripts/image: support EXTRA_CMDLINE in noobs image creation

Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
Matthias Reichl 2023-08-20 15:44:02 +02:00
parent a43ba0706a
commit 63c68f7670
2 changed files with 4 additions and 1 deletions

View File

@ -46,7 +46,7 @@ fi
# create bootloader configuration
echo "creating bootloader configuration..."
echo "boot=$id1 disk=$id2 quiet" > $MOUNTPOINT/cmdline.txt
echo "boot=$id1 disk=$id2 quiet @EXTRA_CMDLINE@" > $MOUNTPOINT/cmdline.txt
# cleanup mountpoint
umount $MOUNTPOINT

View File

@ -407,6 +407,9 @@ if [ "${1}" = "release" -o "${1}" = "mkimage" -o "${1}" = "noobs" ]; then
-e "s%@SYSTEM_SIZE@%${SYSTEM_SIZE}%g" \
-i ${RELEASE_DIR}/${NOOBS_DISTRO}/partitions.json
sed -e "s%@EXTRA_CMDLINE@%${EXTRA_CMDLINE}%g" \
-i ${RELEASE_DIR}/${NOOBS_DISTRO}/partition_setup.sh
# Create System dir
mkdir -p ${RELEASE_DIR}/${NOOBS_DISTRO}/System