mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
Merge pull request #1194 from cpswan/master
/dev/loop0 support requires additional flags on formatting and mounting
This commit is contained in:
commit
f89a3b53d5
@ -206,13 +206,14 @@ echo "#########################################################"
|
||||
|
||||
# create filesystem
|
||||
echo "creating filesystem on $PART1..."
|
||||
mkfs.vfat "$PART1" -n System
|
||||
mkfs.vfat "$PART1" -I -n System
|
||||
|
||||
echo "creating filesystem on $PART2..."
|
||||
mkfs.ext4 "$PART2" -L Storage
|
||||
|
||||
# remount loopback device
|
||||
if [ "$DISK" = "/dev/loop0" ]; then
|
||||
sync
|
||||
losetup -d $DISK
|
||||
losetup $DISK $IMGFILE -o 1048576 --sizelimit 131071488
|
||||
PART1=$DISK
|
||||
@ -223,12 +224,12 @@ echo "#########################################################"
|
||||
if [ -d /dev/shm ]; then
|
||||
rm -rf /dev/shm/openelec_install
|
||||
mkdir -p /dev/shm/openelec_install
|
||||
mount "$PART1" /dev/shm/openelec_install
|
||||
mount -t vfat "$PART1" /dev/shm/openelec_install
|
||||
MOUNTPOINT=/dev/shm/openelec_install
|
||||
else
|
||||
rm -rf /tmp/openelec_install
|
||||
mkdir -p /tmp/openelec_install
|
||||
mount "$PART1" /tmp/openelec_install
|
||||
mount -t vfat "$PART1" /tmp/openelec_install
|
||||
MOUNTPOINT=/tmp/openelec_install
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user