avoid heredocs, they don't work on a fully readonly VFS
This commit is contained in:
parent
f3cc18fcc2
commit
31f80cc8da
14
rc.in
14
rc.in
|
@ -33,14 +33,14 @@ rc.tmpdirs() {
|
||||||
|
|
||||||
rc.mount_misc() {
|
rc.mount_misc() {
|
||||||
for m in "${cfg_mounts[@]}"; do
|
for m in "${cfg_mounts[@]}"; do
|
||||||
IFS=':' read fs fs_type mountpoint mount_options <<< "$m"
|
echo "$m" | while IFS=':' read fs fs_type mountpoint mount_options; do
|
||||||
|
[[ "$mount_options" ]] || { mount_options='defaults'; }
|
||||||
|
|
||||||
[[ "$mount_options" ]] || { mount_options='defaults'; }
|
mountpoint -q "$mountpoint" || {
|
||||||
|
[[ -d "$mountpoint" ]] || { mkdir -p "$mountpoint"; }
|
||||||
mountpoint -q "$mountpoint" || {
|
mount "$fs" -n -t "$fs_type" -o "$mount_options" "$mountpoint"
|
||||||
[[ -d "$mountpoint" ]] || { mkdir -p "$mountpoint"; }
|
}
|
||||||
mount "$fs" -n -t "$fs_type" -o "$mount_options" "$mountpoint"
|
done
|
||||||
}
|
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user