mirror of https://github.com/tailix/tailix.git
Add /etc/inittab, /etc/passwd, /etc/group
This commit is contained in:
parent
b32c3a7a93
commit
581d51e9e5
3
Makefile
3
Makefile
|
@ -15,7 +15,10 @@ SYSROOT = $(SRC)/sysroot
|
|||
|
||||
SYSROOT_TARGETS = \
|
||||
$(SYSROOT)/bin/busybox \
|
||||
$(SYSROOT)/etc/group \
|
||||
$(SYSROOT)/etc/hosts \
|
||||
$(SYSROOT)/etc/inittab \
|
||||
$(SYSROOT)/etc/passwd \
|
||||
$(SYSROOT)/etc/shells \
|
||||
$(SYSROOT)/usr/lib/libc.a
|
||||
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
tty1::respawn:/sbin/getty 38400 tty1
|
||||
tty2::respawn:/sbin/getty 38400 tty2
|
||||
tty3::respawn:/sbin/getty 38400 tty3
|
||||
tty4::respawn:/sbin/getty 38400 tty4
|
||||
tty5::respawn:/sbin/getty 38400 tty5
|
||||
tty6::respawn:/sbin/getty 38400 tty6
|
|
@ -0,0 +1 @@
|
|||
root::0:0:root:/root:/bin/sh
|
|
@ -101,3 +101,5 @@ $(BUILDDIR)/busybox/.config: musl-gcc.specs
|
|||
$(SED) -i 's!^#* *CONFIG_FEATURE_VI_REGEX_SEARCH[ =].*$$!CONFIG_FEATURE_VI_REGEX_SEARCH=n!' $(BUILDDIR)/busybox/.config
|
||||
$(SED) -i 's!^#* *CONFIG_IFPLUGD[ =].*$$!CONFIG_IFPLUGD=n!' $(BUILDDIR)/busybox/.config
|
||||
$(SED) -i 's!^#* *CONFIG_PAM[ =].*$$!CONFIG_PAM=n!' $(BUILDDIR)/busybox/.config
|
||||
# Direct use of /etc/passwd, /etc/group, /etc/shadow
|
||||
$(SED) -i 's!^#* *CONFIG_USE_BB_PWD_GRP[ =].*$$!CONFIG_USE_BB_PWD_GRP=y!' $(BUILDDIR)/busybox/.config
|
||||
|
|
12
make/etc.mk
12
make/etc.mk
|
@ -1,7 +1,19 @@
|
|||
$(SYSROOT)/etc/group: etc/group
|
||||
$(INSTALL) -d $(SYSROOT)/etc
|
||||
$(INSTALL) -m 644 etc/group $(SYSROOT)/etc/group
|
||||
|
||||
$(SYSROOT)/etc/hosts: etc/hosts
|
||||
$(INSTALL) -d $(SYSROOT)/etc
|
||||
$(INSTALL) -m 644 etc/hosts $(SYSROOT)/etc/hosts
|
||||
|
||||
$(SYSROOT)/etc/inittab: etc/inittab
|
||||
$(INSTALL) -d $(SYSROOT)/etc
|
||||
$(INSTALL) -m 644 etc/inittab $(SYSROOT)/etc/inittab
|
||||
|
||||
$(SYSROOT)/etc/passwd: etc/passwd
|
||||
$(INSTALL) -d $(SYSROOT)/etc
|
||||
$(INSTALL) -m 644 etc/passwd $(SYSROOT)/etc/passwd
|
||||
|
||||
$(SYSROOT)/etc/shells: etc/shells
|
||||
$(INSTALL) -d $(SYSROOT)/etc
|
||||
$(INSTALL) -m 644 etc/shells $(SYSROOT)/etc/shells
|
||||
|
|
Loading…
Reference in New Issue