Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 353024 | Differences between
and this patch

Collapse All | Expand All

(-)a/defaults/linuxrc (-3 / +6 lines)
Lines 725-734 cd "${CHROOT}" Link Here
725
mkdir "${CHROOT}/proc" "${CHROOT}/sys" 2>/dev/null
725
mkdir "${CHROOT}/proc" "${CHROOT}/sys" 2>/dev/null
726
echo -ne "${BOLD}.${NORMAL}"
726
echo -ne "${BOLD}.${NORMAL}"
727
727
728
# If devtmpfs is mounted assume genkernel mounted it at /dev and try unmounting it
728
# If devtmpfs is mounted, try move it to the new root
729
# If that fails, try to unmount all possible mounts of devtmpfs as stuff breaks otherwise
729
if grep -qs devtmpfs /proc/mounts
730
if grep -qs devtmpfs /proc/mounts
730
then
731
then
731
	umount /dev || echo '*: Failed to unmount the devtmpfs /dev!'
732
	if ! mount --move /dev "${CHROOT}"/dev
733
	then
734
		umount -a -t devtmpfs || echo '*: Failed to move and unmount the devtmpfs /dev!'
735
	fi
732
fi
736
fi
733
737
734
umount /sys || echo '*: Failed to unmount the ramdisk /sys!'
738
umount /sys || echo '*: Failed to unmount the ramdisk /sys!'
735
- 

Return to bug 353024