create_installstick: use UUID support for install stick

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-01-21 21:13:12 +01:00
parent 30aef80952
commit 6635fb8861

View File

@ -97,7 +97,7 @@ fi
# make filesystem
echo "make filesystem on $PART..."
mkfs.vfat "$PART" -n INSTALL
mkfs.vfat "$PART" -n OpenELEC
# install syslinux
echo "install syslinux to $PART..."
@ -108,13 +108,33 @@ fi
mkdir -p /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
echo "copy files to $PART..."
cp target/KERNEL /tmp/usb_install
cp target/KERNEL.md5 /tmp/usb_install
cp target/SYSTEM /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
echo "syncing disk..."