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/initrd.scripts (-5 / +7 lines)
Lines 308-320 run_shell() { Link Here
308
308
309
runmdev() {
309
runmdev() {
310
	# Use devtmpfs if enabled in kernel,
310
	# Use devtmpfs if enabled in kernel,
311
	# else busybox udev replacement
311
	# else tmpfs. Always run mdev just in case
312
	devfs=tmpfs
312
	if grep -qs devtmpfs /proc/filesystems ; then
313
	if grep -qs devtmpfs /proc/filesystems ; then
313
		# Options copied from /etc/init.d/udev-mount, should probably be kept in sync
314
		devfs=devtmpfs
314
		mount -t devtmpfs -o "exec,nosuid,mode=0755,size=10M" udev /dev
315
	else
316
		mdev -s
317
	fi
315
	fi
316
317
	# Options copied from /etc/init.d/udev-mount, should probably be kept in sync
318
	mount -t $devfs -o "exec,nosuid,mode=0755,size=10M" udev /dev
319
	mdev -s
318
}
320
}
319
321
320
test_success() {
322
test_success() {
(-)a/defaults/linuxrc (-3 / +2 lines)
Lines 727-737 echo -ne "${BOLD}.${NORMAL}" Link Here
727
727
728
# If devtmpfs is mounted, try move it to the new root
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 that fails, try to unmount all possible mounts of devtmpfs as stuff breaks otherwise
730
if grep -qs devtmpfs /proc/mounts
730
if grep -qs "/dev " /proc/mounts
731
then
731
then
732
	if ! mount --move /dev "${CHROOT}"/dev
732
	if ! mount --move /dev "${CHROOT}"/dev
733
	then
733
	then
734
		umount -t devtmpfs || echo '*: Failed to move and unmount the devtmpfs /dev!'
734
		umount /dev || echo '*: Failed to move and unmount the ramdisk /dev!'
735
	fi
735
	fi
736
fi
736
fi
737
737
738
- 

Return to bug 353024