Skip to content

Commit

Permalink
Revert "busybox-initramfs: mount with enabled 'discard', we will see …
Browse files Browse the repository at this point in the history
…if its problematic"

This reverts commit f7fce74.
  • Loading branch information
sraue committed Jun 19, 2012
1 parent 2625c8f commit 4380792
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/initramfs/sysutils/busybox-initramfs/scripts/init
Expand Up @@ -356,13 +356,13 @@ NBD_DEVS="0"
mount_disks() {
progress "Mounting disks"

mount_part "$boot" "/flash" "ro,noatime,discard"
mount_part "$boot" "/flash" "ro,noatime"

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,discard"
mount_part "$disk" "/storage" "rw,noatime"
mkdir -p /storage/$OVERLAY_DIR
/bin/busybox umount /storage

Expand All @@ -376,7 +376,7 @@ NBD_DEVS="0"
fi
fi

mount_part "$disk" "/storage" "rw,noatime,discard"
mount_part "$disk" "/storage" "rw,noatime"
fi
}

Expand Down

0 comments on commit 4380792

Please sign in to comment.