From d345ec820118123df1f61d71d588bf72e42e57c7 Mon Sep 17 00:00:00 2001 From: Jose V Beneyto Date: Tue, 23 Oct 2012 13:09:28 +0000 Subject: [PATCH] Added pass/login support and required files --- Makefile | 5 ++++- filesystem/group | 1 + filesystem/passwd | 1 + filesystem/shadow | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 filesystem/group create mode 100644 filesystem/passwd create mode 100644 filesystem/shadow diff --git a/Makefile b/Makefile index 5dbc711..54c8259 100644 --- a/Makefile +++ b/Makefile @@ -102,8 +102,11 @@ $(WORK)/initrd.gz: check-root busybox dialog $(WORK)/mnt $(TOPDIR)/filesystem $( install -d $(WORK)/mnt/usr/share/terminfo cp -dRv $(CLFS)/usr/share/terminfo/v $(WORK)/mnt/usr/share/terminfo install -v -m 0644 $(TOPDIR)/filesystem/{fstab,inittab,profile,protocols,*.conf} $(WORK)/mnt/etc + install -v -m 0664 $(TOPDIR)/filesystem/group $(WORK)/mnt/etc + install -v -m 0600 $(TOPDIR)/filesystem/passwd $(WORK)/mnt/etc + install -v -m 0400 $(TOPDIR)/filesystem/shadow $(WORK)/mnt/etc install -v -m 0755 $(TOPDIR)/filesystem/rc $(WORK)/mnt/etc && \ - install -v -m 0755 $(TOPDIR)/filesystem/{setup*,crux} $(WORK)/mnt/usr/bin && \ + install -v -m 0755 $(TOPDIR)/filesystem/{setup,setup-chroot,crux} $(WORK)/mnt/usr/bin && \ /sbin/ldconfig -r $(WORK)/mnt umount -v $(WORK)/mnt cd $(WORK) && gzip -v initrd diff --git a/filesystem/group b/filesystem/group new file mode 100644 index 0000000..18acc30 --- /dev/null +++ b/filesystem/group @@ -0,0 +1 @@ +root:x:0:root diff --git a/filesystem/passwd b/filesystem/passwd new file mode 100644 index 0000000..eb85a55 --- /dev/null +++ b/filesystem/passwd @@ -0,0 +1 @@ +root:x:0:0:root:/root:/bin/sh diff --git a/filesystem/shadow b/filesystem/shadow new file mode 100644 index 0000000..6034cdc --- /dev/null +++ b/filesystem/shadow @@ -0,0 +1 @@ +root:x:0:::::: -- 2.26.2