blob: ce4ee850cf3d6060346419f08c1fd19eb063ae07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
type getarg > /dev/null 2>&1 || . /lib/dracut-lib.sh
for root in $(getargs rootfallback=); do
root=$(label_uuid_to_dev "$root")
if ! [ -b "$root" ]; then
warn "Could not find rootfallback $root"
continue
fi
if mount "$root" /sysroot; then
info "Mounted rootfallback $root"
exit 0
else
warn "Failed to mount rootfallback $root"
exit 1
fi
done
[ -e "$job" ] && rm -f "$job"
|