Passing dhclient leases through switch_root
cp /var/lib/dhclient/dhclient.leases /sysroot/dev/.dhclient-$dev.leases
mkinitrd for a while has copied the leases file to /dev, because it is the only directory that survives switch_root. The system then can have the entire leases file for whatever needed purposes.
Any objections to doing this in dracut?
Warren Togami
[email protected]
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 7 lines · Warren Togami
cp
/var/lib/dhclient/dhclient.leases/sysroot/dev/.dhclient-$dev.leasesmkinitrd for a while has copied the leases file to /dev, because it is the only directory that survives
switch_root. The system then can have the entire leases file for whatever needed purposes.Any objections to doing this in dracut?
None here. We should do something along those lines for /tmp if we were asked to debug the initrd.
Quoted 6 lines
Warren Togami
[email protected]
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 8 lines
Victor Lowther RHCE# 805008539634727 LPIC-2# LPI000140019 -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 1243896410.647.35.camel-76q0VzFBGGr21HsLBtNmTckMGDeJXHgy@public.gmane.org
Quoted 4 lines · Victor Lowther
None here. We should do something along those lines for /tmp if we were asked to debug the initrd.
If netboot, copy /tmp/net.* for the boot interface to /dev/.boot/
This is for the use of anything in the booted system that needs to be aware of what network was brought up during initrd.
If cmdline rdcopystate, then copy all of /tmp/* into /dev/.boot/
This is primarily for debugging purposes.
Thoughts?
Warren Togami
[email protected]
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 5 lines · Warren Togami
cp
/var/lib/dhclient/dhclient.leases/sysroot/dev/.dhclient-$dev.leasesmkinitrd for a while has copied the leases file to /dev, because it is the only directory that survives
switch_root. The system then can have the entire leases file for whatever needed purposes.Any objections to doing this in dracut?
None at all.
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html