Merge pull request #1194 from cpswan/master

/dev/loop0 support requires additional flags on formatting and mounting
This commit is contained in:
Stephan Raue 2012-09-05 16:11:07 -07:00
commit f89a3b53d5

View File

@ -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