Associated revisions

- Use 'reinstallkernel' to avoid leaving *.old files
in the ISO image.
- Make sure the '/boot/kernel/kernel.BOOTP' symbolic link
is recreated when it already exists (-f option to ln).
- Do not use '-p' to cp. In the case /etc/resolv.conf file
has schg flag set, a later rm during nrelease would fail.

History

On Wed, Sep 09, 2009 at 02:35:06PM +0900, YONETANI Tomokazu wrote:
> - cp -p resolv.conf inherits file flags, but nrelease attempts to rm it
> later on, which may fail if it had schg set.

The rationale for having schg on /etc/resolv.conf is, by the way, so that
dhclient won't replace it, and it's much easier than going through the
manpages (dhclient, dhclient.conf, dhclient-script) and come up with a
workaround (defining an empty function named make_resolv_conf in
/etc/dhclient-enter-hooks, or specifying a modified version of dhclient-
script with doesn't touch resolv.conf in dhclient.conf, and so on).