From 5af58b45146ab5253ca964738f4e45287bf963d4 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 5 Apr 2007 11:18:42 +0000 Subject: Rewrite the core parts in C. We now provide librc so other programs can query runlevels, services and state without using bash. We also provide libeinfo so other programs can easily use our informational functions. As such, we have dropped the requirement of using bash as the init script shell. We now use /bin/sh and have strived to make the scripts as portable as possible. Shells that work are bash and dash. busybox works provided you disable s-s-d. If you have WIPE_TMP set to yes in conf.d/bootmisc you should disable find too. zsh and ksh do not work at this time. Networking support is currently being re-vamped also as it was heavily bash array based. As such, a new config format is available like so config_eth0="1.2.3.4/24 5.6.7.8/16" or like so config_eth0="'1.2.3.4 netmask 255.255.255.0' '5.6.7.8 netmask 255.255.0.0'" We will still support the old bash array format provided that /bin/sh IS a link it bash. ChangeLog for baselayout-1 can be found in our SVN repo. --- share.Linux/Makefile | 6 ++++++ share.Linux/fstab | 27 +++++++++++++++++++++++++++ share.Linux/group | 27 +++++++++++++++++++++++++++ share.Linux/issue.devfix | 21 +++++++++++++++++++++ share.Linux/passwd | 15 +++++++++++++++ share.Linux/shadow | 16 ++++++++++++++++ 6 files changed, 112 insertions(+) create mode 100644 share.Linux/Makefile create mode 100644 share.Linux/fstab create mode 100644 share.Linux/group create mode 100644 share.Linux/issue.devfix create mode 100644 share.Linux/passwd create mode 100644 share.Linux/shadow (limited to 'share.Linux') diff --git a/share.Linux/Makefile b/share.Linux/Makefile new file mode 100644 index 00000000..9f04fea2 --- /dev/null +++ b/share.Linux/Makefile @@ -0,0 +1,6 @@ +DIR = /usr/share/baselayout +FILES = fstab issue.devfix group passwd +FILES_SECURE = shadow + +TOPDIR = .. +include $(TOPDIR)/default.mk diff --git a/share.Linux/fstab b/share.Linux/fstab new file mode 100644 index 00000000..2ba830fc --- /dev/null +++ b/share.Linux/fstab @@ -0,0 +1,27 @@ +# /etc/fstab: static file system information. +# +# noatime turns off atimes for increased performance (atimes normally aren't +# needed; notail increases performance of ReiserFS (at the expense of storage +# efficiency). It's safe to drop the noatime options if you want and to +# switch between notail / tail freely. +# +# The root filesystem should have a pass number of either 0 or 1. +# All other filesystems should have a pass number of 0 or greater than 1. +# +# See the manpage fstab(5) for more information. +# + +# + +# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts. +/dev/BOOT /boot ext2 noauto,noatime 1 2 +/dev/ROOT / ext3 noatime 0 1 +/dev/SWAP none swap sw 0 0 +/dev/cdrom /mnt/cdrom audo noauto,ro 0 0 +#/dev/fd0 /mnt/floppy auto noauto 0 0 + +# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for +# POSIX shared memory (shm_open, shm_unlink). +# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will +# use almost no memory if not populated with files) +shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 diff --git a/share.Linux/group b/share.Linux/group new file mode 100644 index 00000000..d8e2be15 --- /dev/null +++ b/share.Linux/group @@ -0,0 +1,27 @@ +root::0:root +bin::1:root,bin,daemon +daemon::2:root,bin,daemon +sys::3:root,bin,adm +adm::4:root,adm,daemon +tty::5: +disk::6:root,adm +lp::7:lp +mem::8: +kmem::9: +wheel::10:root +floppy::11:root +mail::12:mail +news::13:news +uucp::14:uucp +console::17: +audio::18: +cdrom::19: +tape::26:root +video::27:root +cdrw::80: +usb::85: +users::100:games +portage::250:portage +utmp:x:406: +nogroup::65533: +nobody::65534: diff --git a/share.Linux/issue.devfix b/share.Linux/issue.devfix new file mode 100644 index 00000000..163e50f4 --- /dev/null +++ b/share.Linux/issue.devfix @@ -0,0 +1,21 @@ +----------------------------------------------------- +Your system seems to be missing critical device files +in /dev ! Although you may be running udev or devfs, +the root partition is missing these required files ! + +To rectify this situation, please do the following: +mkdir /mnt/fixit +mount --bind / /mnt/fixit +cp -a /dev/* /mnt/fixit/dev/ +umount /mnt/fixit +rmdir /mnt/fixit + +You may refer to these instructions at /etc/issue. +If you previously had an issue file, it has been +backed up at /etc/issue.devfix. Once you've fixed +your system, you will have to restore your old issue +file in order to get rid of this warning. + +Thanks for using Gentoo ! :) +http://bugs.gentoo.org/show_bug.cgi?id=40987 +----------------------------------------------------- diff --git a/share.Linux/passwd b/share.Linux/passwd new file mode 100644 index 00000000..dfab6776 --- /dev/null +++ b/share.Linux/passwd @@ -0,0 +1,15 @@ +root:x:0:0:root:/root:/bin/bash +bin:x:1:1:bin:/bin:/bin/false +daemon:x:2:2:daemon:/sbin:/bin/false +adm:x:3:4:adm:/var/adm:/bin/false +lp:x:4:7:lp:/var/spool/lpd:/bin/false +sync:x:5:0:sync:/sbin:/bin/sync +shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown +halt:x:7:0:halt:/sbin:/sbin/halt +mail:x:8:12:mail:/var/spool/mail:/bin/false +news:x:9:13:news:/usr/lib/news:/bin/false +uucp:x:10:14:uucp:/var/spool/uucppublic:/bin/false +operator:x:11:0:operator:/root:/bin/bash +postmaster:x:14:12:postmaster:/var/spool/mail:/bin/false +portage:x:250:250:portage:/var/tmp/portage:/bin/false +nobody:x:65534:65534:nobody:/:/bin/false diff --git a/share.Linux/shadow b/share.Linux/shadow new file mode 100644 index 00000000..99d5ecce --- /dev/null +++ b/share.Linux/shadow @@ -0,0 +1,16 @@ +root:*:10770:0::::: +halt:*:9797:0::::: +operator:*:9797:0::::: +shutdown:*:9797:0::::: +sync:*:9797:0::::: +bin:*:9797:0::::: +daemon:*:9797:0::::: +adm:*:9797:0::::: +lp:*:9797:0::::: +mail:*:9797:0::::: +postmaster:*:9797:0::::: +news:*:9797:0::::: +uucp:*:9797:0::::: +games:*:9797:0::::: +guest:*:9797:0::::: +nobody:*:9797:0::::: -- cgit v1.2.3