Pre-generating persistent-net rules

Alexander E. Patrakov patrakov at gmail.com
Mon Nov 19 03:21:26 MST 2007


I wrote:
> debootstrap doesn't do this (it doesn't even install udev by default),
> you want to look at debian-installer.

In fact, you want to look at udev-udeb (a copy of udev used by the
debian installer). This udeb has the file
/usr/lib/base-installer.d/05udev with the following contents:

#!/bin/sh -e

RULESDIR=etc/udev/rules.d
cp /$RULESDIR/z25_persistent-cd.rules \
   /$RULESDIR/z25_persistent-net.rules \
        /target/$RULESDIR 2>/dev/null || true


So indeed, Debian installer allows udev in the installer to generate
rules, then allows the user to choose and configure the primary
network card, and then copies the generated rules to the target
system. This solution doesn't work for LFS, because we can't assume
that we can copy udev rules from the host.

-- 
Alexander E. Patrakov


More information about the lfs-dev mailing list