2021-04-29 02:59:42 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
TARGET="$1"
|
|
|
|
|
|
|
|
mkdir -p $TARGET
|
|
|
|
pacstrap $TARGET busybox
|
|
|
|
|
|
|
|
cd $TARGET
|
|
|
|
|
2021-04-30 13:57:24 +00:00
|
|
|
ln -s usr/bin bin
|
2021-04-30 13:53:33 +00:00
|
|
|
mkdir -p home
|
2021-04-29 02:59:42 +00:00
|
|
|
tee etc/passwd <<<'root:x:0:0::/root:/bin/sh'
|
|
|
|
tee etc/group <<<'root:x:0:root'
|
|
|
|
tee etc/profile <<<'export PS1="[\u@\h \W]\$ "'
|
|
|
|
|
|
|
|
cd usr/bin
|
|
|
|
|
|
|
|
busybox --list | grep -v busybox | xargs -n1 ln -s busybox
|
|
|
|
|