summaryrefslogtreecommitdiffstats
path: root/dracut/anaconda-netroot.sh
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2012-03-08 15:52:08 -0500
committerWill Woods <wwoods@redhat.com>2012-03-16 12:36:59 -0400
commita41d3d0664465396d26d06e53d01d9eda71b729e (patch)
tree2c3f0bfe3ddb962c94fa5378b0df3375c5293b01 /dracut/anaconda-netroot.sh
parente383d24cc54b781f546eafce880b90526da25627 (diff)
downloadanaconda-a41d3d0664465396d26d06e53d01d9eda71b729e.tar.gz
anaconda-a41d3d0664465396d26d06e53d01d9eda71b729e.tar.xz
anaconda-a41d3d0664465396d26d06e53d01d9eda71b729e.zip
fixups: run ks early, don't repeat netroot
- we should run the kickstart before anything else - don't run netroot again if it's already finished
Diffstat (limited to 'dracut/anaconda-netroot.sh')
-rwxr-xr-xdracut/anaconda-netroot.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/dracut/anaconda-netroot.sh b/dracut/anaconda-netroot.sh
index 81c7a0828..641c8394a 100755
--- a/dracut/anaconda-netroot.sh
+++ b/dracut/anaconda-netroot.sh
@@ -10,6 +10,8 @@ repo=$(getarg repo= inst.repo=)
# no repo? non-net root? we're not needed here.
[ "$root" = "anaconda-net" ] && [ -n "$repo" ] || return 0
+# already done? don't run again.
+[ -e /dev/root ] && return 0
# get network/kickstart info
[ -e /tmp/ks.info ] && . /tmp/ks.info