Commit 96401af0 authored by Natanael Copa's avatar Natanael Copa

setup-disk: allow override filesystem for /var via VARFS

Thanks to Jim Pryor for pointing this out.
parent bb0ceedb
......@@ -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
......
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