sysvinit: reduce number of mkdir calls in inittab
authorCarlos Santos <casantos@datacom.com.br>
Mon, 11 Jun 2018 06:00:13 +0000 (03:00 -0300)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 12 Jun 2018 09:22:34 +0000 (11:22 +0200)
The default sysvinit inittab does two separate mkdir calls to create
/dev/pts and /dev/shm. Reduce this to call mkdir only once for both
directories.

This removes id "si3" but keeps ids "si4".."si9" intact rather than
renumbering them. This would just increase the turmoil without any
practical effect.

Based on commit e9db8122fb, by Florian La Roche <F.LaRoche@pilz.de>.

Signed-off-by: Carlos Santos <casantos@datacom.com.br>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/sysvinit/inittab

index 7eaef59d9e6281e60d976cf078f0544f650bf420..2ca253ad6cd2c69c4ea1af38c1ac5edb8303d86e 100644 (file)
@@ -6,8 +6,7 @@ id:3:initdefault:
 
 si0::sysinit:/bin/mount -t proc proc /proc
 si1::sysinit:/bin/mount -o remount,rw /
-si2::sysinit:/bin/mkdir -p /dev/pts
-si3::sysinit:/bin/mkdir -p /dev/shm
+si2::sysinit:/bin/mkdir -p /dev/pts /dev/shm
 si4::sysinit:/bin/mount -a
 si5::sysinit:/bin/ln -sf /proc/self/fd /dev/fd 2>/dev/null
 si6::sysinit:/bin/ln -sf /proc/self/fd/0 /dev/stdin 2>/dev/null