moved everything to different stages
This commit is contained in:
35
stage/prechroot/setup.bash
Normal file
35
stage/prechroot/setup.bash
Normal file
@@ -0,0 +1,35 @@
|
||||
|
||||
sudo chroot "$SYSROOT" /usr/bin/env -i /usr/bin/bash <<- "EOF"
|
||||
ln -s /run /var/run
|
||||
ln -sfv /run/lock /var/lock
|
||||
|
||||
install -dv -m 0750 /root
|
||||
install -dv -m 1777 /tmp /var/tmp
|
||||
|
||||
ln -s proc/self/mounts /etc/mtab
|
||||
|
||||
cat > /etc/hosts <<- "END_OF_FILE"
|
||||
127.0.0.1 localhost axe
|
||||
::1 localhost
|
||||
END_OF_FILE
|
||||
|
||||
cat > /etc/passwd <<- "END_OF_FILE"
|
||||
root:x:0:0:root:/root:/usr/bin/bash
|
||||
uuidd:x:6:6::/dev/null:/usr/bin/nologin
|
||||
messagebus:x:7:7::/run/dbus:/usr/bin/nologin
|
||||
nobody:x:65534:65534::/dev/null:/usr/bin/nologin
|
||||
END_OF_FILE
|
||||
|
||||
cat > /etc/group <<- "END_OF_FILE"
|
||||
root:x:0:
|
||||
tty:x:1:
|
||||
audio:x:2:
|
||||
video:x:3:
|
||||
input:x:4:
|
||||
wheel:x:5:
|
||||
uuidd:x:6:
|
||||
messagebus:x:7:
|
||||
users:x:999:
|
||||
nogroup:x:65534:
|
||||
END_OF_FILE
|
||||
EOF
|
||||
Reference in New Issue
Block a user