From 49b778dec05a142690bf88ead5649fefe0adc1a6 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Sat, 19 Oct 2013 19:58:09 +0100 Subject: install/rescue: Adapt to a dracut based stage1. The main change here is not remounting a fresh /run. Dracut does this for us and we actually need to keep this one as the initial udev database (when udev is started by dracut) is stored here and thus mounting an empty fs could see us lose some metadata. We no longer touch the /bin, /sbin or /lib[64] symlinks as these are already relative symlinks into /usr and simply bind mounting /usr is enough. --- tools/drakx-in-chroot | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tools') diff --git a/tools/drakx-in-chroot b/tools/drakx-in-chroot index 1384c2e18..852792349 100755 --- a/tools/drakx-in-chroot +++ b/tools/drakx-in-chroot @@ -184,6 +184,14 @@ sub create_initial_symlinks() { symlink $from, $to or die "symlinking $to failed\n"; } } + $from = "$STAGE2_LOCATION_ROOTED/usr"; + $to = "$SLASH_LOCATION/usr"; + symlink $from, $to or die "symlinking $to failed\n"; + foreach ('bin', 'sbin', 'lib', 'lib64') { + $from = "usr/$_"; + $to = "$SLASH_LOCATION/$_"; + symlink $from, $to or die "symlinking $to failed\n"; + } } sub create_initial_devices() { -- cgit v1.2.1