base/init: removed rd.timestamp and automatically export RD_*
authorHarald Hoyer <harald@redhat.com>
Tue, 12 Apr 2011 06:29:14 +0000 (08:29 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 12 Apr 2011 06:30:33 +0000 (08:30 +0200)
dracut.kernel.7.xml
modules.d/99base/init

index ebf5a19..1a18299 100644 (file)
@@ -169,14 +169,6 @@ This parameter can be specified multiple times.</para>
             <para>set udev to loglevel debug</para>
           </listitem>
         </varlistentry>
-        <varlistentry>
-          <term>
-            <envar>rd.timestamp</envar>
-          </term>
-          <listitem>
-            <para>export RDTIMESTAMP environment variable to init, which is set to the uptime of the dracut start.</para>
-          </listitem>
-        </varlistentry>
       </variablelist>
     </refsect2>
     <refsect2>
index 37e1bc4..313e6ab 100755 (executable)
@@ -332,12 +332,14 @@ for i in $(export -p); do
     i=${i#declare -x}
     i=${i#export}
     strstr "$i" "=" || continue
-    # skip RD_ vars
     i=${i%%=*}
     [ -z "$i" ] && continue
     case $i in
         root|PATH|HOME|TERM|PS4|RD_*)
             :;;
+        # skip RD_ vars and export them
+        RD_*)
+            export $i;;
         *)
             unset "$i";;
     esac
@@ -377,12 +379,6 @@ if getargbool 0 rd.copystate -y rdcopystate; then
     cp -axr /tmp/* /run/initramfs/ >/dev/null 2>&1
 fi
 
-if getargbool 1 rd.timestamp; then
-    export RD_TIMESTAMP
-else
-    unset RD_TIMESTAMP
-fi    
-
 info "Switching root"
 
 wait_for_loginit