From 5d7cdc38d0ced38b9060d60f5f756bd74cf4e42b Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Tue, 12 Apr 2011 08:29:14 +0200 Subject: [PATCH] base/init: removed rd.timestamp and automatically export RD_* --- dracut.kernel.7.xml | 8 -------- modules.d/99base/init | 10 +++------- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/dracut.kernel.7.xml b/dracut.kernel.7.xml index ebf5a19..1a18299 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 37e1bc4..313e6ab 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 -- 2.7.4