summaryrefslogtreecommitdiffstats
path: root/modules.d/99base/parse-root-opts.sh
blob: 95252498ed7e23ccc89696f1666a5d30f3521e58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

# shellcheck disable=SC2034
root=$(getarg root=)

rflags="$(getarg rootflags=)"
getargbool 0 ro && rflags="${rflags},ro"
getargbool 0 rw && rflags="${rflags},rw"
rflags="${rflags#,}"

fstype="$(getarg rootfstype=)"
if [ -z "$fstype" ]; then
    fstype="auto"
fi