From: Harald Hoyer Date: Tue, 12 Apr 2011 06:29:14 +0000 (+0200) Subject: base/init: removed rd.timestamp and automatically export RD_* X-Git-Tag: 011~96 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5d7cdc38d0ced38b9060d60f5f756bd74cf4e42b;p=thirdparty%2Fdracut.git base/init: removed rd.timestamp and automatically export RD_* --- diff --git a/dracut.kernel.7.xml b/dracut.kernel.7.xml index ebf5a1905..1a1829915 100644 --- a/dracut.kernel.7.xml +++ b/dracut.kernel.7.xml @@ -169,14 +169,6 @@ This parameter can be specified multiple times. set udev to loglevel debug - - - rd.timestamp - - - export RDTIMESTAMP environment variable to init, which is set to the uptime of the dracut start. - - diff --git a/modules.d/99base/init b/modules.d/99base/init index 37e1bc43b..313e6ab55 100755 --- a/modules.d/99base/init +++ b/modules.d/99base/init @@ -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