wok-tiny rev 162

busybox: /etc/mtab is a symlink
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jun 11 16:42:53 2020 +0000 (2020-06-11)
parents 424fb2c33d92
children 86fb26b8cd18
files base-tiny/stuff/etc/busybox.conf base-tiny/stuff/etc/hosts base-tiny/stuff/etc/inetd.conf base-tiny/stuff/etc/inittab base-tiny/stuff/etc/mtab base-tiny/stuff/etc/network.conf base-tiny/stuff/etc/rcS.conf base-tiny/stuff/etc/shells busybox-net/receipt busybox/receipt
line diff
     1.1 --- a/base-tiny/stuff/etc/busybox.conf	Sat Jun 06 11:03:06 2020 +0000
     1.2 +++ b/base-tiny/stuff/etc/busybox.conf	Thu Jun 11 16:42:53 2020 +0000
     1.3 @@ -1,6 +1,3 @@
     1.4 -# /etc/busybox.conf: SliTaz GNU/linux Busybox configuration.
     1.5 -#
     1.6 -
     1.7  [SUID]
     1.8  # Allow command to be run by anyone.
     1.9  su = ssx root.root
     2.1 --- a/base-tiny/stuff/etc/hosts	Sat Jun 06 11:03:06 2020 +0000
     2.2 +++ b/base-tiny/stuff/etc/hosts	Thu Jun 11 16:42:53 2020 +0000
     2.3 @@ -1,1 +1,1 @@
     2.4 -127.0.0.1      localhost slitaz tazpanel
     2.5 +127.0.0.1      localhost slitaz
     3.1 --- a/base-tiny/stuff/etc/inetd.conf	Sat Jun 06 11:03:06 2020 +0000
     3.2 +++ b/base-tiny/stuff/etc/inetd.conf	Thu Jun 11 16:42:53 2020 +0000
     3.3 @@ -1,16 +1,5 @@
     3.4  # Internet server configuration database
     3.5  #
     3.6 -#
     3.7 -# If you want to disable an entry so it isn't touched during
     3.8 -# package updates just comment it out with a single '#' character.
     3.9 -#
    3.10 -# If you make changes to this file, either reboot your machine or
    3.11 -# send the inetd process a HUP signal:
    3.12 -# Do a "ps x" as root and look up the pid of inetd. Then do a
    3.13 -#     kill -HUP <pid of inetd>
    3.14 -# inetd will re-read this file whenever it gets that signal.
    3.15 -# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
    3.16 -#
    3.17  #:INTERNAL: Internal services
    3.18  # It is generally considered safer to keep these off.
    3.19  echo     stream  tcp	nowait	root	internal
     4.1 --- a/base-tiny/stuff/etc/inittab	Sat Jun 06 11:03:06 2020 +0000
     4.2 +++ b/base-tiny/stuff/etc/inittab	Thu Jun 11 16:42:53 2020 +0000
     4.3 @@ -1,6 +1,4 @@
     4.4 -# /etc/inittab: init configuration for SliTaz GNU/Linux.
     4.5  # Boot-time system configuration/initialization script.
     4.6 -#
     4.7  ::sysinit:/etc/init.d/rcS 2>&1 | tee /var/log/boot.log
     4.8  
     4.9  # getty respawn shell invocations for selected ttys.
     5.1 --- a/base-tiny/stuff/etc/mtab	Sat Jun 06 11:03:06 2020 +0000
     5.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.3 @@ -1,1 +0,0 @@
     5.4 -/proc/mounts
     5.5 \ No newline at end of file
     6.1 --- a/base-tiny/stuff/etc/network.conf	Sat Jun 06 11:03:06 2020 +0000
     6.2 +++ b/base-tiny/stuff/etc/network.conf	Thu Jun 11 16:42:53 2020 +0000
     6.3 @@ -1,6 +1,5 @@
     6.4 -# /etc/network.conf: SliTaz system wide networking configuration.
     6.5 +# SliTaz system wide networking configuration.
     6.6  # Config file used by: /etc/init.d/network.sh
     6.7 -#
     6.8  
     6.9  # Set default interface.
    6.10  INTERFACE="eth0"
     7.1 --- a/base-tiny/stuff/etc/rcS.conf	Sat Jun 06 11:03:06 2020 +0000
     7.2 +++ b/base-tiny/stuff/etc/rcS.conf	Thu Jun 11 16:42:53 2020 +0000
     7.3 @@ -1,6 +1,5 @@
     7.4 -# /etc/rcS.conf - Initial boot script configuration for SliTaz GNU/Linux.
     7.5 +# Initial boot script configuration for SliTaz GNU/Linux.
     7.6  # Config file used by /etc/init.d/rcS
     7.7 -#
     7.8  
     7.9  # Clean up the system removing all tmp and pid files.
    7.10  CLEAN_UP_SYSTEM="yes"
     8.1 --- a/base-tiny/stuff/etc/shells	Sat Jun 06 11:03:06 2020 +0000
     8.2 +++ b/base-tiny/stuff/etc/shells	Thu Jun 11 16:42:53 2020 +0000
     8.3 @@ -1,5 +1,1 @@
     8.4 -# /etc/shells: Valid login shells.
     8.5  /bin/sh
     8.6 -/bin/ash
     8.7 -/bin/bash
     8.8 -/bin/hush
     9.1 --- a/busybox-net/receipt	Sat Jun 06 11:03:06 2020 +0000
     9.2 +++ b/busybox-net/receipt	Thu Jun 11 16:42:53 2020 +0000
     9.3 @@ -77,6 +77,7 @@
     9.4  {
     9.5      mkdir $fs/boot $fs/bin $fs/sbin
     9.6      cp -a $WOK/base-tiny/stuff/. $fs/
     9.7 +    sed -i -e 's| *#.*$||' -e '/^$/d' $fs/etc/services
     9.8      cp -a $src/_install/bin/busybox $fs/bin
     9.9      for i in /bin/sh /bin/login /bin/false /sbin/mdev /init ; do
    9.10  	ln -f $fs/bin/busybox $fs$i
    9.11 @@ -152,6 +153,7 @@
    9.12  {
    9.13  	sed -i 's|local.sh|network.sh &|' $1/etc/rcS.conf
    9.14  	chmod 4755 $1/bin/busybox
    9.15 +	ln -fs /proc/mounts $1/etc/mtab
    9.16  	DHCP="no"
    9.17  	STATIC="yes"
    9.18  	case "$MODE" in
    10.1 --- a/busybox/receipt	Sat Jun 06 11:03:06 2020 +0000
    10.2 +++ b/busybox/receipt	Thu Jun 11 16:42:53 2020 +0000
    10.3 @@ -147,6 +147,7 @@
    10.4  post_install()
    10.5  {
    10.6  	chmod 4755 $1/bin/busybox
    10.7 +	ln -fs /proc/mounts $1/etc/mtab
    10.8  	cat >> $1/boot/mkrootfs.pre_exec <<EOT
    10.9  if [ -s modules ]; then
   10.10  	while read mod; do