summaryrefslogtreecommitdiffstats
path: root/modules.d/95nbd
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-26 10:33:11 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-26 10:33:11 +0000
commit203af7302854f453fa4a05ecefd4403b6c8a4f8d (patch)
tree967fdacafe332baabd12b57725505c138d0f3bbf /modules.d/95nbd
parentAdding upstream version 102. (diff)
downloaddracut-203af7302854f453fa4a05ecefd4403b6c8a4f8d.tar.xz
dracut-203af7302854f453fa4a05ecefd4403b6c8a4f8d.zip
Adding upstream version 103.upstream/103upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'modules.d/95nbd')
-rwxr-xr-xmodules.d/95nbd/nbdroot.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules.d/95nbd/nbdroot.sh b/modules.d/95nbd/nbdroot.sh
index b1a8030..35e24fa 100755
--- a/modules.d/95nbd/nbdroot.sh
+++ b/modules.d/95nbd/nbdroot.sh
@@ -60,7 +60,7 @@ while [ -n "$nbdopts" ]; do
if [ -z "$f" ]; then
break
fi
- if [ -z "${f%bs=*}" -o -z "${f%timeout=*}" ]; then
+ if [ -z "${f%bs=*}" ] || [ -z "${f%timeout=*}" ]; then
preopts="$preopts $f"
continue
fi
@@ -75,7 +75,7 @@ while [ -n "$nbdflags" ]; do
if [ -z "$f" ]; then
break
fi
- if [ "$f" = "ro" -o "$f" = "rw" ]; then
+ if [ "$f" = "ro" ] || [ "$f" = "rw" ]; then
nbdrw=$f
continue
fi
@@ -96,7 +96,7 @@ done
# If we didn't get a root= on the command line, then we need to
# add the udev rules for mounting the nbd0 device
-if [ "$root" = "block:/dev/root" -o "$root" = "dhcp" ]; then
+if [ "$root" = "block:/dev/root" ] || [ "$root" = "dhcp" ]; then
printf 'KERNEL=="nbd0", ENV{DEVTYPE}!="partition", ENV{ID_FS_TYPE}=="?*", SYMLINK+="root"\n' > /etc/udev/rules.d/99-nbd-root.rules
udevadm control --reload
wait_for_dev -n /dev/root