[meego-commits] 23501: Changes to Trunk/mkinitrd

Ulf Hofemeier no_reply at build.meego.com
Tue Aug 2 15:58:23 UTC 2011


Hi,
I have made the following changes to mkinitrd in project Trunk. Please review and accept ASAP.

Thank You,
Ulf Hofemeier

[This message was auto-generated]

---

Request #23501:

  submit:   Trunk:Testing/mkinitrd(r2) -> Trunk/mkinitrd


Message:
    * Fri Jul 22 2011 Yi Yang <yi.y.yang at intel.com> - 7.0.17
- Mount /run as tmpfs and mkdir /run/udev/rules.d (BMC#20806)

State:   new          2011-08-02T08:58:14 ulf
Comment: None



changes files:
--------------
--- mkinitrd.changes
+++ mkinitrd.changes
@@ -0,0 +1,3 @@
+* Fri Jul 22 2011 Yi Yang <yi.y.yang at intel.com> - 7.0.17
+- Mount /run as tmpfs and mkdir /run/udev/rules.d (BMC#20806)
+

new:
----
  mount-run-and-create-dirs-for-udev.patch

spec files:
-----------
--- mkinitrd.spec
+++ mkinitrd.spec
@@ -13,6 +13,7 @@
 Patch3:  mkinitrd-lsb-functions-optional.patch
 Patch4:  systemd_mkinitrd_live_mrst.patch
 Patch5:  modprobe_conf.patch
+Patch6:  mount-run-and-create-dirs-for-udev.patch
 ExclusiveOs: Linux
 Requires(pre): udev
 Requires: /bin/sh, /sbin/insmod.static, /sbin/losetup
@@ -43,6 +44,7 @@
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
+%patch6 -p1
 
 #
 # 2x30 seconds is waay too long a timeout to wait for udev

other changes:
--------------

++++++ mount-run-and-create-dirs-for-udev.patch (new)
--- mount-run-and-create-dirs-for-udev.patch
+++ mount-run-and-create-dirs-for-udev.patch
+diff --git a/mkliveinitrd b/mkliveinitrd
+index ea5b0b8..c3c09a7 100755
+--- a/mkliveinitrd
++++ b/mkliveinitrd
+@@ -248,6 +248,11 @@ mount -n -t sysfs sysfs /sys
+ 
+ echo "" > /proc/sys/kernel/hotplug
+ 
++mkdir -p -m 0755 /run
++mount -t tmpfs -o mode=0755,nodev,noexec,nosuid tmpfs /run >/dev/null 2>&1
++mkdir -m 0755 /run/udev /run/udev/rules.d
++export UDEVRULESD=/run/udev/rules.d
++
+ # Declare all variables here.. mostly for housekeeping
+ #
+ init="/sbin/init"



More information about the MeeGo-commits mailing list