diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-03-05 09:19:36 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-03-05 09:19:36 +0000 |
commit | 96401af08dec8cfd8a9cad3975885746ea89374d (patch) | |
tree | 72ff46fd2590c352c867e5df1199d280af250cf3 | |
parent | bb0ceedbbc533e87ae9832ca107065186ad9fae1 (diff) | |
download | alpine-conf-96401af08dec8cfd8a9cad3975885746ea89374d.zip |
setup-disk: allow override filesystem for /var via VARFS
Thanks to Jim Pryor for pointing this out.
-rw-r--r-- | setup-disk.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/setup-disk.in b/setup-disk.in index 4d98f19..0f05b74 100644 --- a/setup-disk.in +++ b/setup-disk.in @@ -6,6 +6,7 @@ PREFIX= MBR=${MBR:-"/usr/share/syslinux/mbr.bin"} ROOTFS=${ROOTFS:-ext4} BOOTFS=${BOOTFS:-ext4} +VARFS=${VARFS:-ext4} in_list() { local i="$1" @@ -563,7 +564,7 @@ reset_var() { # set up /var on given device setup_var() { local var_dev="$1" - local varfs=ext4 + local varfs=${VARFS} echo "Creating file systems..." mkfs.$varfs -q $var_dev >/dev/null || return 1 sed -i -e '/[[:space:]]\/var[[:space:]]/d' /etc/fstab |