mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
Some typos.
Added a second "sync" command because umount is not patient and will cancel the unmounting process if there is too much left to write to the stick.
This commit is contained in:
parent
5f73eab95e
commit
1266653b80
10
config/release/create_installstick
Executable file → Normal file
10
config/release/create_installstick
Executable file → Normal file
@ -136,6 +136,10 @@ fi
|
|||||||
cp README /tmp/usb_install
|
cp README /tmp/usb_install
|
||||||
cp RELEASE /tmp/usb_install
|
cp RELEASE /tmp/usb_install
|
||||||
|
|
||||||
|
# syncing disk
|
||||||
|
echo "syncing disk..."
|
||||||
|
sync
|
||||||
|
|
||||||
# unmount partition
|
# unmount partition
|
||||||
echo "unmounting partition $PART..."
|
echo "unmounting partition $PART..."
|
||||||
umount "$PART"
|
umount "$PART"
|
||||||
@ -143,11 +147,11 @@ fi
|
|||||||
# write mbr
|
# write mbr
|
||||||
echo "writing mbr..."
|
echo "writing mbr..."
|
||||||
if [ -f /usr/lib/syslinux/mbr.bin ]; then
|
if [ -f /usr/lib/syslinux/mbr.bin ]; then
|
||||||
MBR="/usr/lib/syslinux/mbr.bin" # example: ubuntu
|
MBR="/usr/lib/syslinux/mbr.bin" # example: debian, ubuntu
|
||||||
elif [ -f /usr/share/syslinux/mbr.bin ]; then
|
elif [ -f /usr/share/syslinux/mbr.bin ]; then
|
||||||
MBR="/usr/share/syslinux/mbr.bin" # example: fedora
|
MBR="/usr/share/syslinux/mbr.bin" # example: fedora
|
||||||
else
|
else
|
||||||
echo "Dont find mbr.bin on Host OS"
|
echo "Can't find mbr.bin on Host OS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$MBR" ]; then
|
if [ -n "$MBR" ]; then
|
||||||
@ -162,4 +166,4 @@ fi
|
|||||||
echo "cleaning tempdir..."
|
echo "cleaning tempdir..."
|
||||||
rmdir /tmp/usb_install
|
rmdir /tmp/usb_install
|
||||||
|
|
||||||
echo "...ready"
|
echo "...finished installation"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user