initramfs-tools: umount /run, reduce size of /run tmpfs.

This commit is contained in:
Juan RP 2011-04-29 22:41:37 +02:00
parent e0611f10ab
commit 5ae93346f2
2 changed files with 3 additions and 5 deletions

View File

@ -31,7 +31,7 @@ if ! mount -t devtmpfs -o size=$tmpfs_size,mode=0755 devtmpfs /dev; then
[ -e /dev/null ] || mknod /dev/null c 1 3
fi
# Also mount a tmpfs for /run directory.
mount -t tmpfs -o mode=0755,nosuid,nodev tmpfs /run
mount -t tmpfs -o size=$tmpfs_size,mode=0755,nosuid,nodev tmpfs /run
mkdir /run/udev
mkdir /run/.initramfs
@ -299,9 +299,7 @@ unset resume_offset
# Umount misc filesystems, they will be mounted by the init scripts.
umount /sys
umount /proc
# Move /run to the final rootfs, so that .initramfs debug is available.
mount -n -o move /run ${rootmnt}/run
umount /run
# Chain to real filesystem
exec switch_root ${rootmnt} ${init} "$@"

View File

@ -1,6 +1,6 @@
# Template file for 'initramfs-tools'
pkgname=initramfs-tools
_localver=0.99.11 # This is the XBPS version
_localver=0.99.12 # This is the XBPS version
_distver=0.98.8 # This should match debian version
version=${_localver}.${_distver}
build_style=custom-install