Configure hostname

This commit is contained in:
Alex Kotov 2023-09-07 22:53:38 +04:00
parent 581d51e9e5
commit 948a193218
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
4 changed files with 8 additions and 0 deletions

View File

@ -16,6 +16,7 @@ SYSROOT = $(SRC)/sysroot
SYSROOT_TARGETS = \
$(SYSROOT)/bin/busybox \
$(SYSROOT)/etc/group \
$(SYSROOT)/etc/hostname \
$(SYSROOT)/etc/hosts \
$(SYSROOT)/etc/inittab \
$(SYSROOT)/etc/passwd \

1
etc/hostname Normal file
View File

@ -0,0 +1 @@
localhost

View File

@ -1,3 +1,5 @@
::sysinit:/bin/hostname -F /etc/hostname
tty1::respawn:/sbin/getty 38400 tty1
tty2::respawn:/sbin/getty 38400 tty2
tty3::respawn:/sbin/getty 38400 tty3

View File

@ -2,6 +2,10 @@ $(SYSROOT)/etc/group: etc/group
$(INSTALL) -d $(SYSROOT)/etc
$(INSTALL) -m 644 etc/group $(SYSROOT)/etc/group
$(SYSROOT)/etc/hostname: etc/hostname
$(INSTALL) -d $(SYSROOT)/etc
$(INSTALL) -m 644 etc/hostname $(SYSROOT)/etc/hostname
$(SYSROOT)/etc/hosts: etc/hosts
$(INSTALL) -d $(SYSROOT)/etc
$(INSTALL) -m 644 etc/hosts $(SYSROOT)/etc/hosts