Commit d51ba67b authored by Colin Watson's avatar Colin Watson

When creating a new filesystem, set the default mount options to the

contents of /lib/partman/mountoptions/${fs}_defaults if it exists.

r53485
parent 96e6a649
......@@ -4,6 +4,8 @@ partman-partitioning (60) UNRELEASED; urgency=low
* Move 'local' down a line in create_new_partition in order to work
properly with bash, which initialises local variables without an
accompanying assignment to empty rather than to any previous value.
* When creating a new filesystem, set the default mount options to the
contents of /lib/partman/mountoptions/${fs}_defaults if it exists.
-- Colin Watson <cjwatson@debian.org> Tue, 27 May 2008 10:17:15 +0100
......
......@@ -154,6 +154,11 @@ create_new_partition () {
>$id/use_filesystem
echo ext3 >$id/filesystem
mkdir -p $id/options
if [ -f /lib/partman/mountoptions/ext3_defaults ]; then
for op in $(cat /lib/partman/mountoptions/ext3_defaults); do
echo "$op" >"$id/options/$op"
done
fi
mplist='/ /home /usr /var /tmp /usr/local /opt /srv /boot'
mpcurrent=$(
for dev in $DEVICES/*; do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment