adapt code to use partman-basicfilesystems/no_mount_point

and remove now unused template

r62468
This commit is contained in:
Joey Hess 2010-02-24 20:44:22 +00:00
parent 1555aa05b9
commit 54ab683f25
2 changed files with 6 additions and 15 deletions

View file

@ -22,12 +22,13 @@ for dev in $DEVICES/*; do
case "$filesystem" in
btrfs)
[ ! -f "$id/mountpoint" ] || continue
db_subst partman-btrfs/no_mount_point PARTITION "$num"
db_subst partman-btrfs/no_mount_point FILESYSTEM "$filesystem"
db_subst partman-btrfs/no_mount_point DEVICE $(humandev $(cat device))
db_input critical partman-btrfs/no_mount_point || true
T=partman-basicfilesystems/no_mount_point
db_subst $T PARTITION "$num"
db_subst $T FILESYSTEM "$filesystem"
db_subst $T DEVICE $(humandev $(cat device))
db_input critical $T || true
db_go || exit 1
db_get partman-btrfs/no_mount_point
db_get $T
if [ "$RET" = true ]; then
exit 1
fi

View file

@ -10,16 +10,6 @@ _Description: Failed to create a file system
The btrfs file system creation in partition
#${PARTITION} of ${DEVICE} failed.
Template: partman-btrfs/no_mount_point
Type: boolean
# :sl2:
_Description: Do you want to return to the partitioning menu?
No mount point is assigned for the btrfs file system in partition
#${PARTITION} of ${DEVICE}.
.
If you do not go back to the partitioning menu and assign a mount point
from there, this partition will not be used at all.
Template: partman-btrfs/text/specify_mountpoint
Type: text
# :sl2: