diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-12-14 16:15:18 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-12-14 16:15:18 +0000 |
commit | 9ed0b9efd74f0532cae9b466311863f1bb66d5d1 (patch) | |
tree | 22c0fa09ad1c6c6e886f2426731ede444b8d515f | |
parent | 52bbb477523d4ad70998028bdaeab489c9ff37bd (diff) | |
download | alpine-conf-9ed0b9efd74f0532cae9b466311863f1bb66d5d1.zip |
setup-disk: fix bashism
-rw-r--r-- | setup-disk.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setup-disk.in b/setup-disk.in index 254ffef..09c23db 100644 --- a/setup-disk.in +++ b/setup-disk.in @@ -541,7 +541,7 @@ setup_boot_dev() { --metadata=0.90 --quiet --run $@ $missing || return 1 bootdev=/dev/md0 fi - [ "$BOOTFS" == "btrfs" ] && mkfs_args="" + [ "$BOOTFS" = "btrfs" ] && mkfs_args="" mkfs.$BOOTFS $mkfs_args $bootdev BOOT_DEV="$bootdev" } @@ -733,7 +733,7 @@ data_only_disk_install() { # setup setup_root() { local root_dev="$1" boot_dev="$2" mkfs_args="-q" - [ "$ROOTFS" == "btrfs" ] && mkfs_args="" + [ "$ROOTFS" = "btrfs" ] && mkfs_args="" mkfs.$ROOTFS $mkfs_args "$root_dev" mkdir -p "$SYSROOT" mount -t $ROOTFS $root_dev "$SYSROOT" || return 1 |