Add missing #72253 patch.
authorTim Yamin <plasmaroo@gentoo.org>
Sat, 22 Jan 2005 20:24:24 +0000 (20:24 +0000)
committerTim Yamin <plasmaroo@gentoo.org>
Sat, 22 Jan 2005 20:24:24 +0000 (20:24 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@161 67a159dc-881f-0410-a524-ba9dfbe2cb84

generic/linuxrc

index aada361d83016cab3c1473a2cb3ed1af745ade2f..f7e5b63490f00d0d08ce443af3b60fb709727227 100644 (file)
@@ -444,11 +444,11 @@ then
        rm -rf /tmp/.initrd/dev || echo '*: Failed to remove the initrd /dev!'
 elif [ "${USE_UDEV_NORMAL}" -eq '1' ]
 then
-       rm /tmp/.initrd/dev/fd || echo '*: Failed to rm the initrd fd!'
-       rm /tmp/.initrd/dev/stdin || echo '*: Failed to rm the initrd stdin!'
-       rm /tmp/.initrd/dev/stdout || echo '*: Failed to rm the initrd stdout!'
-       rm /tmp/.initrd/dev/stderr || echo '*: Failed to rm the initrd stderr!'
-       rm /tmp/.initrd/dev/core || echo '*: Failed to rm the initrd core!'
+       [ -e /tmp/.initrd/dev/fd ] && rm /tmp/.initrd/dev/fd
+       [ -e /tmp/.initrd/dev/stdin ] && rm /tmp/.initrd/dev/stdin
+       [ -e /tmp/.initrd/dev/stdout ] && rm /tmp/.initrd/dev/stdout
+       [ -e /tmp/.initrd/dev/stderr ] && rm /tmp/.initrd/dev/stderr
+       [ -e /tmp/.initrd/dev/core ] && rm /tmp/.initrd/dev/core 
        umount /tmp/.initrd/dev || echo '*: Failed to unmount the initrd /dev!'
        umount /tmp/.initrd/proc || echo '*: Failed to unmount the initrd /proc!'
        umount /tmp/.initrd/sys || echo '*: Failed to unmount the initrd /sys!'