Skip to contentSkip to conversation

branch, master, updated. b2415f4414e0a13a81c90b5356ec1a4b7a61468b

dracut GIT Harald Hoyer 1 participant 1 message Nov 18, 2010

lore
Share & tools
lore
#0 lore raw

The branch, master has been updated

       via  b2415f4414e0a13a81c90b5356ec1a4b7a61468b (commit)
       via  2eea164db733f4ee022c30b9221d5007ba1ec151 (commit)
      from  7a8a33b6cdcb7ae614f9fab4816d9b86b30af445 (commit)

Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.

- Log ----------------------------------------------------------------- commit b2415f4414e0a13a81c90b5356ec1a4b7a61468b

Author: Harald Hoyer <[email protected]>
Date:   Thu Nov 18 12:28:21 2010 +0100

base: use systemd-timestamp for RD_TIMESTAMP, if possible

modules.d/99base/init +7 -2
index 1c695c2..f79d102 100755
@@ -76,8 +76,13 @@ RDDEBUG=""
 mount -t proc -o nosuid,noexec,nodev /proc /proc >/dev/null 2>&1
 mount -t sysfs -o nosuid,noexec,nodev /sys /sys >/dev/null 2>&1
 
-read RD_TIMESTAMP _tmp < /proc/uptime
-unset _tmp
+
+if [ -x /lib/systemd/systemd-timestamp ]; then
+    RD_TIMESTAMP=$(/lib/systemd/systemd-timestamp)
+else
+    read RD_TIMESTAMP _tmp < /proc/uptime
+    unset _tmp
+fi
 
 if [ ! -c /dev/ptmx ]; then
     # try to mount devtmpfs
modules.d/99base/install +1 -0
index 0435e32..57bf4bc 100755
@@ -27,3 +27,4 @@ inst "$moddir/dracut-lib.sh" "/lib/dracut-lib.sh"
 inst_hook cmdline 10 "$moddir/parse-root-opts.sh"
 inst_hook cmdline 20 "$moddir/parse-blacklist.sh"
 mkdir -p "${initdir}/var/run"
+[ -x /lib/systemd/systemd-timestamp ] && inst /lib/systemd/systemd-timestamp

commit 2eea164db733f4ee022c30b9221d5007ba1ec151

Author: Harald Hoyer <[email protected]>
Date:   Wed Nov 17 17:37:22 2010 +0100

base/init: do not set umask

somehow /dev/dri gets created with the wrong permissions
https://bugzilla.redhat.com/show_bug.cgi?id=626559

modules.d/99base/init +0 -4
index ee67ae5..1c695c2 100755
@@ -66,9 +66,6 @@ export PATH=/sbin:/bin:/usr/sbin:/usr/bin
 NEWROOT="/sysroot"
 
 trap "emergency_shell Signal caught!" 0
-# set umask
-OLD_UMASK=$(umask)
-umask 0007
 
 RDDEBUG=""
 . /lib/dracut-lib.sh
@@ -326,7 +323,6 @@ info "Switching root"
 
 wait_for_loginit
 
-umask $OLD_UMASK
 export PATH="$OLD_PATH"
 
 exec /sbin/switch_root "$NEWROOT" "$INIT" $initargs || {

-----------------------------------------------------------------------

Summary of changes:

 modules.d/99base/init    |   13 +++++++------
 modules.d/99base/install |    1 +
 2 files changed, 8 insertions(+), 6 deletions(-)
Signature · 1 line
dracut - Initramfs generator using udev