Skip to contentSkip to conversation

Passing dhclient leases through switch_root

DISCUSSION Warren Togami 3 participants 4 messages Jun 1, 2009 – Jun 3, 2009 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

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

#2 lore raw
In reply to a message not in the archive
Quoted 7 lines · Warren Togami

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?

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
#5 lore raw
In reply to a message not in the archive
Quoted 5 lines · Warren Togami

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?

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

#4 lore raw
In reply to a message not in the archive
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