busybox-initramfs: mount with enabled 'discard', we will see if its problematic

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2012-06-14 10:24:40 +02:00
parent 56ee33becd
commit f7fce74ee0

View File

@ -356,13 +356,13 @@ NBD_DEVS="0"
mount_disks() {
progress "Mounting disks"
mount_part "$boot" "/flash" "ro,noatime"
mount_part "$boot" "/flash" "ro,noatime,discard"
if [ -n "$disk" ]; then
if [ -n "$OVERLAY" ]; then
OVERLAY_DIR=`cat /sys/class/net/eth0/address | /bin/busybox tr -d :`
mount_part "$disk" "/storage" "rw,noatime"
mount_part "$disk" "/storage" "rw,noatime,discard"
mkdir -p /storage/$OVERLAY_DIR
/bin/busybox umount /storage
@ -376,7 +376,7 @@ NBD_DEVS="0"
fi
fi
mount_part "$disk" "/storage" "rw,noatime"
mount_part "$disk" "/storage" "rw,noatime,discard"
fi
}