Commit 9ed0b9ef authored by Natanael Copa's avatar Natanael Copa
Browse files

setup-disk: fix bashism

parent 52bbb477
...@@ -541,7 +541,7 @@ setup_boot_dev() { ...@@ -541,7 +541,7 @@ setup_boot_dev() {
--metadata=0.90 --quiet --run $@ $missing || return 1 --metadata=0.90 --quiet --run $@ $missing || return 1
bootdev=/dev/md0 bootdev=/dev/md0
fi fi
[ "$BOOTFS" == "btrfs" ] && mkfs_args="" [ "$BOOTFS" = "btrfs" ] && mkfs_args=""
mkfs.$BOOTFS $mkfs_args $bootdev mkfs.$BOOTFS $mkfs_args $bootdev
BOOT_DEV="$bootdev" BOOT_DEV="$bootdev"
} }
...@@ -733,7 +733,7 @@ data_only_disk_install() { ...@@ -733,7 +733,7 @@ data_only_disk_install() {
# setup # setup
setup_root() { setup_root() {
local root_dev="$1" boot_dev="$2" mkfs_args="-q" local root_dev="$1" boot_dev="$2" mkfs_args="-q"
[ "$ROOTFS" == "btrfs" ] && mkfs_args="" [ "$ROOTFS" = "btrfs" ] && mkfs_args=""
mkfs.$ROOTFS $mkfs_args "$root_dev" mkfs.$ROOTFS $mkfs_args "$root_dev"
mkdir -p "$SYSROOT" mkdir -p "$SYSROOT"
mount -t $ROOTFS $root_dev "$SYSROOT" || return 1 mount -t $ROOTFS $root_dev "$SYSROOT" || return 1
......
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