/etc/hosts in scripts/FAIBASE/10-misc
abezella at archive.org
Tue Mar 3 21:28:52 CET 2020
it looks like with the example simple fai-config space there is
something of a no-op in how `scripts/FAIBASE/10-misc` interacts with
`lib/subroutines` with respect to `/etc/hosts`.
in `lib/subroutines` the installing system's `/etc/hosts` is copied
into the target and its original is backed up to `/etc/hosts.orig`.
then later in `scripts/FAIBASE/10-misc` some modifications are made to
the target's `/etc/hosts` based on the `IPADDR` variable and the
`DHCPC` class. but immediately following these changes the `.orig`
file (which afaict will always exist) is moved back into place.
i'm not 100% sure what the intent is. perhaps the solution is just to
move the `IPADDR`/`DHCPC`-related modifications below the `mv` and/or
`fcopy` lines? i can submit this change if so...
andrew bezella <abezella at archive.org>
More information about the linux-fai