summaryrefslogtreecommitdiffstats
path: root/initrd/initrd-stuff/init
diff options
context:
space:
mode:
Diffstat (limited to 'initrd/initrd-stuff/init')
-rwxr-xr-xinitrd/initrd-stuff/init2
1 files changed, 2 insertions, 0 deletions
diff --git a/initrd/initrd-stuff/init b/initrd/initrd-stuff/init
index bea32b4d..b21ffc8d 100755
--- a/initrd/initrd-stuff/init
+++ b/initrd/initrd-stuff/init
@@ -437,5 +437,7 @@ mount -n --move /dev /mnt/dev
killall -9 udevd 2>/dev/null
umount -n /proc
[ -n "${UNIONFS}" ] && mount -n --move /root /mnt/mnt
+# unset old environment variables
+unset debug date initrd ip nfsroot vci
# new style of pivoting
exec run-init -c dev/console /mnt /sbin/init || error "$init_runinit"