Revamp system prepare

parent 8b491951
......@@ -2,39 +2,37 @@
# Distributed under the terms of the ISC License
$RM $SBLD &&
$RM $SCER &&
$RM /bin &&
$RM /boot &&
$RM /root &&
$RM /tmp &&
$RM /usr &&
$RM /var &&
$MKDIR $SBLD &&
$RM $SCER &&
$MKDIR $SCER &&
$MKDIR /bin &&
$RM /boot &&
$MKDIR /boot &&
$MKDIR /etc &&
$MKDIR /usr/bin &&
$MKDIR /usr/cerata &&
$MKDIR /usr/include &&
$MKDIR /usr/lib &&
$MKDIR /usr/share &&
$MKDIR /var &&
$MKDIR /var/lib &&
$MKDIR /var/lib/urandom &&
$MKDIR /var/log &&
printf 'root:x:0:
tty:x:1:
disk:x:2:
audio:x:3:
video:x:4:
utmp:x:5:\n' > /etc/group &&
printf '127.0.0.1 localhost glaucus\n' > /etc/hosts &&
printf 'root::0:0:root:/root:/usr/bin/ksh\n' > /etc/passwd &&
$RM /lib &&
$RM /root &&
$MKDIR -m 0750 /root &&
$MKDIR -m 1777 /tmp &&
$LN $TOOL/bin/echo /bin &&
$LN $TOOL/bin/false /bin &&
$LN $TOOL/bin/ls /bin &&
$RM /tmp &&
$MKDIR -m 1777 /tmp &&
$LN $TOOL/bin/dash /bin/sh &&
$RM /usr &&
$MKDIR /usr/bin &&
$LN $TOOL/bin/dash /usr/bin &&
$LN $TOOL/bin/env /usr/bin &&
......@@ -42,6 +40,10 @@ $LN $TOOL/bin/file /usr/bin &&
$LN $TOOL/bin/pwd /usr/bin &&
$LN $TOOL/bin/true /usr/bin &&
$MKDIR /usr/cerata &&
$MKDIR /usr/include &&
$MKDIR /usr/lib &&
$LN $TOOL/lib/libgcc_s.so /usr/lib &&
$LN $TOOL/lib/libgcc_s.so.1 /usr/lib &&
......@@ -55,15 +57,12 @@ $LN $TOOL/lib/libgomp.spec /usr/lib &&
$LN $TOOL/lib/libz.so.1 /usr/lib &&
printf 'root:x:0:
tty:x:1:
disk:x:2:
audio:x:3:
video:x:4:
utmp:x:5:\n' > /etc/group &&
printf '127.0.0.1 localhost glaucus\n' > /etc/hosts &&
$MKDIR /usr/share &&
printf 'root::0:0:root:/root:/usr/bin/ksh\n' > /etc/passwd &&
$RM /var &&
$MKDIR /var &&
$MKDIR /var/lib &&
$MKDIR /var/lib/urandom &&
$MKDIR /var/log &&
$RSYNC $BAKD/chroot/ $TOOL --delete
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment