X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=grml-debootstrap;h=016daec250184843c81c8ce3e4270e5db3243188;hb=8b62d45fcb295cc9b0208d097ec6c9768a887540;hp=9b04baace209784a272c3e0fff6816d492f03e17;hpb=7291d0574567d25404915333bad581b4cf82cdf6;p=grml-debootstrap.git diff --git a/grml-debootstrap b/grml-debootstrap index 9b04baa..016daec 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -607,7 +607,7 @@ fi [ "$_opt_version" ] && { einfo "$PN - version $VERSION" - einfo "Send bug reports to bugs@grml.org or http://grml.org/bugs/" + einfo "Report bugs via https://github.com/grml/grml-debootstrap/ or https://grml.org/bugs/" eend 0 exit 0 } @@ -1723,6 +1723,16 @@ allow-hotplug eth0 iface eth0 inet dhcp " + # add dhcp setting for Predictable Network Interface Names + if [ -x /bin/udevadm ]; then + for interface in $(udevadm info -e | sed -n -e 's/E: ID_NET_NAME_PATH=\([^$*]\)/\1/p'); do + DEFAULT_INTERFACES="${DEFAULT_INTERFACES} +allow-hotplug ${interface} +iface ${interface} inet dhcp +" + done + fi + if [ -n "$NOINTERFACES" ] ; then einfo "Not installing /etc/network/interfaces as requested via --nointerfaces option" ; eend 0 elif [ -n "$USE_DEFAULT_INTERFACES" ] ; then