mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
scripts/image: support EXTRA_CMDLINE in noobs image creation
Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
parent
a43ba0706a
commit
63c68f7670
@ -46,7 +46,7 @@ fi
|
|||||||
|
|
||||||
# create bootloader configuration
|
# create bootloader configuration
|
||||||
echo "creating 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
|
# cleanup mountpoint
|
||||||
umount $MOUNTPOINT
|
umount $MOUNTPOINT
|
||||||
|
@ -407,6 +407,9 @@ if [ "${1}" = "release" -o "${1}" = "mkimage" -o "${1}" = "noobs" ]; then
|
|||||||
-e "s%@SYSTEM_SIZE@%${SYSTEM_SIZE}%g" \
|
-e "s%@SYSTEM_SIZE@%${SYSTEM_SIZE}%g" \
|
||||||
-i ${RELEASE_DIR}/${NOOBS_DISTRO}/partitions.json
|
-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
|
# Create System dir
|
||||||
mkdir -p ${RELEASE_DIR}/${NOOBS_DISTRO}/System
|
mkdir -p ${RELEASE_DIR}/${NOOBS_DISTRO}/System
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user