mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +00:00
create_installstick: use UUID support for install stick
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
30aef80952
commit
6635fb8861
@ -97,7 +97,7 @@ fi
|
|||||||
|
|
||||||
# make filesystem
|
# make filesystem
|
||||||
echo "make filesystem on $PART..."
|
echo "make filesystem on $PART..."
|
||||||
mkfs.vfat "$PART" -n INSTALL
|
mkfs.vfat "$PART" -n OpenELEC
|
||||||
|
|
||||||
# install syslinux
|
# install syslinux
|
||||||
echo "install syslinux to $PART..."
|
echo "install syslinux to $PART..."
|
||||||
@ -108,13 +108,33 @@ fi
|
|||||||
mkdir -p /tmp/usb_install
|
mkdir -p /tmp/usb_install
|
||||||
mount "$PART" /tmp/usb_install
|
mount "$PART" /tmp/usb_install
|
||||||
|
|
||||||
|
# find UUID
|
||||||
|
echo -n "finding UUID from $PART ..."
|
||||||
|
UUID=`blkid $PART -s UUID -o export`
|
||||||
|
echo "$UUID"
|
||||||
|
|
||||||
|
# create bootloader
|
||||||
|
echo "create bootloader..."
|
||||||
|
|
||||||
|
echo "DEFAULT linux" > /tmp/usb_install/syslinux.cfg
|
||||||
|
echo "PROMPT 0" >> /tmp/usb_install/syslinux.cfg
|
||||||
|
echo " " >> /tmp/usb_install/syslinux.cfg
|
||||||
|
echo "LABEL linux" >> /tmp/usb_install/syslinux.cfg
|
||||||
|
echo " KERNEL /KERNEL" >> /tmp/usb_install/syslinux.cfg
|
||||||
|
echo " APPEND boot=$UUID installer quiet" >> /tmp/usb_install/syslinux.cfg
|
||||||
|
|
||||||
# copy files
|
# copy files
|
||||||
echo "copy files to $PART..."
|
echo "copy files to $PART..."
|
||||||
cp target/KERNEL /tmp/usb_install
|
cp target/KERNEL /tmp/usb_install
|
||||||
cp target/KERNEL.md5 /tmp/usb_install
|
cp target/KERNEL.md5 /tmp/usb_install
|
||||||
cp target/SYSTEM /tmp/usb_install
|
cp target/SYSTEM /tmp/usb_install
|
||||||
cp target/SYSTEM.md5 /tmp/usb_install
|
cp target/SYSTEM.md5 /tmp/usb_install
|
||||||
cp sample.conf/syslinux_installer.cfg /tmp/usb_install/syslinux.cfg
|
cp Autorun.inf /tmp/usb_install
|
||||||
|
cp openelec.ico /tmp/usb_install
|
||||||
|
cp CHANGELOG /tmp/usb_install
|
||||||
|
cp INSTALL /tmp/usb_install
|
||||||
|
cp README /tmp/usb_install
|
||||||
|
cp RELEASE /tmp/usb_install
|
||||||
|
|
||||||
# syncing disk
|
# syncing disk
|
||||||
echo "syncing disk..."
|
echo "syncing disk..."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user