summaryrefslogtreecommitdiff
path: root/setup-disk.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-04-05 11:06:59 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-04-05 11:06:59 +0000
commit5b1046727d57d48b0ffd5152447ec5d860f1f44e (patch)
tree383c5b5b13c56d505a30e2baa037a765d4a1dbc5 /setup-disk.in
parentbca5e2171c0c430438d09feea508c9d264afdb4c (diff)
downloadalpine-conf-5b1046727d57d48b0ffd5152447ec5d860f1f44e.zip
setup-disk: add env var to override mkfs opts
give the opportunity to set extra opts fo mkfs
Diffstat (limited to 'setup-disk.in')
-rw-r--r--setup-disk.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/setup-disk.in b/setup-disk.in
index 1cfb8e6..ad0bdb7 100644
--- a/setup-disk.in
+++ b/setup-disk.in
@@ -554,7 +554,7 @@ setup_boot_dev() {
bootdev=/dev/md0
fi
[ "$BOOTFS" = "btrfs" ] && mkfs_args=""
- mkfs.$BOOTFS $mkfs_args $bootdev
+ mkfs.$BOOTFS $MKFS_OPTS_BOOT $mkfs_args $bootdev
BOOT_DEV="$bootdev"
}
@@ -649,7 +649,7 @@ setup_var() {
local var_dev="$1"
local varfs=${VARFS}
echo "Creating file systems..."
- mkfs.$varfs $var_dev >/dev/null || return 1
+ mkfs.$varfs $MKFS_OPTS_VAR $var_dev >/dev/null || return 1
sed -i -e '/[[:space:]]\/var[[:space:]]/d' /etc/fstab
echo -e "${var_dev}\t/var\t\t${varfs}\tdefaults 1 2" >> /etc/fstab
@@ -746,7 +746,7 @@ data_only_disk_install() {
setup_root() {
local root_dev="$1" boot_dev="$2" mkfs_args="-q"
[ "$ROOTFS" = "btrfs" ] && mkfs_args=""
- mkfs.$ROOTFS $mkfs_args "$root_dev"
+ mkfs.$ROOTFS $MKFS_OPTS_ROOT $mkfs_args "$root_dev"
mkdir -p "$SYSROOT"
mount -t $ROOTFS $root_dev "$SYSROOT" || return 1
if [ -n "$boot_dev" ]; then