Currently, network configuration arguments are ignored *unless* the root device is a network device. But there are some cases where you might want to set up the network even though you have a non-network root device (e.g. to fetch updates from the network for a livecd image). With this patch you can set "netroot=no", which will cause dracut to set up the network according to your other boot arguments but not attempt to set up a network root device. Signed-off-by: Will Woods <wwoods@xxxxxxxxxx> --- modules.d/40network/netroot | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/modules.d/40network/netroot b/modules.d/40network/netroot index 9d996cc..eba269a 100755 --- a/modules.d/40network/netroot +++ b/modules.d/40network/netroot @@ -13,11 +13,12 @@ type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh [ ! -e /tmp/net.$1.up ] && exit 1 # There's no sense in doing something if no (net)root info is available -# or root is already there +# or root is already there - or if we're specifially told not to [ -e /tmp/root.info ] || exit 1 . /tmp/root.info [ -d $NEWROOT/proc ] && exit 0 [ -z "$netroot" ] && exit 1 +[ "$netroot" = "no" ] && exit 0 # Let's see if we have to wait for other interfaces # Note: exit works just fine, since the last interface to be -- 1.7.7.5 -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html