mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
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:
parent
56ee33becd
commit
f7fce74ee0
@ -356,13 +356,13 @@ NBD_DEVS="0"
|
|||||||
mount_disks() {
|
mount_disks() {
|
||||||
progress "Mounting disks"
|
progress "Mounting disks"
|
||||||
|
|
||||||
mount_part "$boot" "/flash" "ro,noatime"
|
mount_part "$boot" "/flash" "ro,noatime,discard"
|
||||||
|
|
||||||
if [ -n "$disk" ]; then
|
if [ -n "$disk" ]; then
|
||||||
if [ -n "$OVERLAY" ]; then
|
if [ -n "$OVERLAY" ]; then
|
||||||
OVERLAY_DIR=`cat /sys/class/net/eth0/address | /bin/busybox tr -d :`
|
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
|
mkdir -p /storage/$OVERLAY_DIR
|
||||||
/bin/busybox umount /storage
|
/bin/busybox umount /storage
|
||||||
|
|
||||||
@ -376,7 +376,7 @@ NBD_DEVS="0"
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mount_part "$disk" "/storage" "rw,noatime"
|
mount_part "$disk" "/storage" "rw,noatime,discard"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user