mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-31 01:42:56 +02:00
initramfs-tools: umount /run, reduce size of /run tmpfs.
This commit is contained in:
parent
e0611f10ab
commit
5ae93346f2
2 changed files with 3 additions and 5 deletions
|
@ -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
|
[ -e /dev/null ] || mknod /dev/null c 1 3
|
||||||
fi
|
fi
|
||||||
# Also mount a tmpfs for /run directory.
|
# 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/udev
|
||||||
mkdir /run/.initramfs
|
mkdir /run/.initramfs
|
||||||
|
@ -299,9 +299,7 @@ unset resume_offset
|
||||||
# Umount misc filesystems, they will be mounted by the init scripts.
|
# Umount misc filesystems, they will be mounted by the init scripts.
|
||||||
umount /sys
|
umount /sys
|
||||||
umount /proc
|
umount /proc
|
||||||
|
umount /run
|
||||||
# Move /run to the final rootfs, so that .initramfs debug is available.
|
|
||||||
mount -n -o move /run ${rootmnt}/run
|
|
||||||
|
|
||||||
# Chain to real filesystem
|
# Chain to real filesystem
|
||||||
exec switch_root ${rootmnt} ${init} "$@"
|
exec switch_root ${rootmnt} ${init} "$@"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'initramfs-tools'
|
# Template file for 'initramfs-tools'
|
||||||
pkgname=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
|
_distver=0.98.8 # This should match debian version
|
||||||
version=${_localver}.${_distver}
|
version=${_localver}.${_distver}
|
||||||
build_style=custom-install
|
build_style=custom-install
|
||||||
|
|
Loading…
Add table
Reference in a new issue