File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
__author__ = "desultory"
2
- __version__ = "0.6 .0"
2
+ __version__ = "0.7 .0"
3
3
4
4
from zenlib .util import contains
5
5
@@ -13,13 +13,18 @@ def mount_livecd(self) -> str:
13
13
Because this mount is made manulally, no mount entry/validation/unmounting is done
14
14
All mount handling happens strictly at runtime
15
15
"""
16
- return """
16
+ return f """
17
17
livecd_label="$(readvar livecd_label)"
18
18
if [ -z "$livecd_label" ]; then
19
19
rd_fail "livecd_label must be set to the label of the livecd storage root."
20
20
fi
21
21
einfo "Mounting livecd with label: $livecd_label"
22
- mount LABEL="$livecd_label" /run/livecd || rd_fail "Failed to mount livecd with label: $livecd_label"
22
+ while ! mount LABEL="$livecd_label" /run/livecd 2>/dev/null; do
23
+ eerror "Failed to mount livecd with label: $livecd_label"
24
+ if prompt_user "Press enter to break, waiting: { self ["mount_timeout" ]} s" { self ["mount_timeout" ]} ; then
25
+ rd_fail "Failed to mount livecd with label: $livecd_label"
26
+ fi
27
+ done
23
28
"""
24
29
25
30
You can’t perform that action at this time.
0 commit comments