summaryrefslogtreecommitdiffstats
path: root/modules.d/95rootfs-block
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/95rootfs-block')
-rwxr-xr-xmodules.d/95rootfs-block/module-setup.sh2
-rwxr-xr-xmodules.d/95rootfs-block/mount-root.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/modules.d/95rootfs-block/module-setup.sh b/modules.d/95rootfs-block/module-setup.sh
index 396fb11..943db48 100755
--- a/modules.d/95rootfs-block/module-setup.sh
+++ b/modules.d/95rootfs-block/module-setup.sh
@@ -40,7 +40,7 @@ cmdline_rootfs() {
return
fi
- if [ -n "$_block" -a -b "$_dev" ]; then
+ if [ -n "$_block" ] && [ -b "$_dev" ]; then
printf " root=%s" "$(shorten_persistent_dev "$(get_persistent_dev "$_dev")")"
fi
_fstype="$(find_mp_fstype /)"
diff --git a/modules.d/95rootfs-block/mount-root.sh b/modules.d/95rootfs-block/mount-root.sh
index 973069b..5bb6f0f 100755
--- a/modules.d/95rootfs-block/mount-root.sh
+++ b/modules.d/95rootfs-block/mount-root.sh
@@ -98,7 +98,7 @@ mount_root() {
# printf '%s %s %s %s 1 1 \n' "$esc_root" "$NEWROOT" "$rootfs" "$rflags" >/etc/fstab
if ! getargbool 0 ro && fsck_able "$rootfs" \
- && [ "$rootfsck" != "0" -a -z "$fastboot" ] \
+ && [ "$rootfsck" != "0" ] && [ -z "$fastboot" ] \
&& ! strstr "${rflags}" _netdev \
&& ! getargbool 0 rd.skipfsck; then
umount "$NEWROOT"
@@ -121,6 +121,6 @@ mount_root() {
fi
}
-if [ -n "$root" -a -z "${root%%block:*}" ]; then
+if [ -n "$root" ] && [ -z "${root%%block:*}" ]; then
mount_root
fi