mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
Core Update 167: Replace /etc/mtab by symlink to /proc/self/mounts
mount, as updated via util-linux, no longer writes /etc/mtab, causing programs to rely on this file's content (such as the check_disk Nagios plugin) to stop working. /proc/self/mounts contains all the necessary information, so it is fine to replace /etc/mtab by a symlink to it. Fixes: #12843 Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
This commit is contained in:
@@ -87,7 +87,8 @@ endif
|
||||
cp -rvf $(DIR_SRC)/config/etc/* /etc;
|
||||
[ ! -d "$(DIR_SRC)/config/etc-$(BUILD_ARCH)" ] || cp -rvf $(DIR_SRC)/config/etc-$(BUILD_ARCH)/* /etc
|
||||
cp -rvf $(DIR_SRC)/config/lib/* /lib;
|
||||
touch /etc/{fs,m}tab
|
||||
touch /etc/fstab
|
||||
ln -s /proc/self/mounts /etc/mtab
|
||||
echo "$(NAME) v$(VERSION) - $(SLOGAN)" > /etc/issue
|
||||
echo "===============================" >> /etc/issue
|
||||
echo "\n running on \s \r \m" >> /etc/issue
|
||||
|
||||
Reference in New Issue
Block a user