mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:47:35 +00:00
Base: Rename /users to /home.
I didn't like seeing /users next to /usr. /home looks nicer.
This commit is contained in:
parent
2def3d8d3f
commit
5e8d6b1bf4
3 changed files with 6 additions and 2 deletions
|
@ -1,2 +1,2 @@
|
||||||
root:x:0:0:root:/:/bin/sh
|
root:x:0:0:root:/:/bin/sh
|
||||||
anon:x:100:100:Anonymous,,,:/users/anon:/bin/sh
|
anon:x:100:100:Anonymous,,,:/home/anon:/bin/sh
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
if [ $(id -u) != 0 ]; then
|
||||||
|
echo "This needs to be run as root"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
rm -vf _fs_contents.lock
|
rm -vf _fs_contents.lock
|
||||||
rm -vf _fs_contents
|
rm -vf _fs_contents
|
||||||
dd if=/dev/zero of=_fs_contents bs=1M count=12
|
dd if=/dev/zero of=_fs_contents bs=1M count=12
|
||||||
|
@ -24,7 +28,7 @@ ln -s /proc/self/fd/0 mnt/dev/stdin
|
||||||
ln -s /proc/self/fd/1 mnt/dev/stdout
|
ln -s /proc/self/fd/1 mnt/dev/stdout
|
||||||
ln -s /proc/self/fd/2 mnt/dev/stderr
|
ln -s /proc/self/fd/2 mnt/dev/stderr
|
||||||
cp -vR ../Base/* mnt/
|
cp -vR ../Base/* mnt/
|
||||||
chown -vR 100:100 mnt/users/anon
|
chown -vR 100:100 mnt/home/anon
|
||||||
cp -v ../Userland/sh mnt/bin/sh
|
cp -v ../Userland/sh mnt/bin/sh
|
||||||
cp -v ../Userland/id mnt/bin/id
|
cp -v ../Userland/id mnt/bin/id
|
||||||
cp -v ../Userland/ps mnt/bin/ps
|
cp -v ../Userland/ps mnt/bin/ps
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue