2 # live net images - just like live images, but specified like:
3 # root=live:[url-to-backing-file]
5 [ -z "$root" ] && root
=$
(getarg root
=)
9 updates
=$
(getarg live.updates
=)
10 if [ -n "$updates" ]; then
11 # make sure network comes up even if we're doing a local live device
12 if [ -z "$netroot" ]; then
13 echo > /tmp
/net.ifaces
15 echo "$updates" > /tmp
/liveupdates.info
16 echo '[ -e /tmp/liveupdates.done ]' > \
17 $hookdir/initqueue
/finished
/liveupdates.sh
20 str_starts
"$root" "live:" && liveurl
="$root"
21 str_starts
"$liveurl" "live:" ||
return
22 liveurl
="${liveurl#live:}"
24 # setting netroot to "livenet:..." makes "livenetroot" get run after ifup
25 if get_url_handler
"$liveurl" >/dev
/null
; then
26 info
"livenet: root image at $liveurl"
27 netroot
="livenet:$liveurl"
28 root
="livenet" # quiet complaints from init
30 wait_for_dev
-n /dev
/root
32 info
"livenet: no url handler for $liveurl"