Blame 0015-base-init-fixed-compat-dev-.initramfs-copy.patch

Harald Hoyer d97cfa
From 249f8b5bfc90d9a8ec542e870a527a08e1da7cc3 Mon Sep 17 00:00:00 2001
Harald Hoyer d97cfa
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer d97cfa
Date: Wed, 30 Mar 2011 03:23:37 +0200
Harald Hoyer d97cfa
Subject: [PATCH] base/init: fixed compat /dev/.initramfs copy
Harald Hoyer d97cfa
Harald Hoyer d97cfa
---
Harald Hoyer d97cfa
 modules.d/99base/init |   12 ++++++------
Harald Hoyer d97cfa
 1 files changed, 6 insertions(+), 6 deletions(-)
Harald Hoyer d97cfa
Harald Hoyer d97cfa
diff --git a/modules.d/99base/init b/modules.d/99base/init
Harald Hoyer d97cfa
index a30706b..83d9568 100755
Harald Hoyer d97cfa
--- a/modules.d/99base/init
Harald Hoyer d97cfa
+++ b/modules.d/99base/init
Harald Hoyer d97cfa
@@ -379,13 +379,13 @@ if [ -d "$NEWROOT"/run ]; then
Harald Hoyer d97cfa
     mount --move /run "$NEWROOT"/run
Harald Hoyer d97cfa
 else
Harald Hoyer d97cfa
     if [ -e /run/initramfs ]; then
Harald Hoyer d97cfa
-        mkdir -m 0755 /dev/.initramfs
Harald Hoyer d97cfa
-        cp -axr /run/initramfs/* /dev/.initramfs >/dev/null 2>&1
Harald Hoyer d97cfa
-    fi
Harald Hoyer d97cfa
-    if [ -e /run/mdadm ]; then
Harald Hoyer d97cfa
-        mkdir -m 0755 /dev/.mdadm
Harald Hoyer d97cfa
-        cp -axr /run/mdadm/* /dev/.mdadm >/dev/null 2>&1
Harald Hoyer d97cfa
+        cp -axr /run/initramfs /dev/.initramfs >/dev/null 2>&1
Harald Hoyer d97cfa
+        if [ -e /run/initramfs/live ]; then
Harald Hoyer d97cfa
+            mkdir -m 0755 /dev/.initramfs/live
Harald Hoyer d97cfa
+            mount --move /run/initramfs/live /dev/.initramfs/live
Harald Hoyer d97cfa
+        fi
Harald Hoyer d97cfa
     fi
Harald Hoyer d97cfa
+    umount -l /run
Harald Hoyer d97cfa
 fi
Harald Hoyer d97cfa
 
Harald Hoyer d97cfa
 if [ -f /etc/capsdrop ]; then