mirror of git://git.2f30.org/morpheus.git
Add arch-rootfs build script
This commit is contained in:
parent
e6c30c4cb2
commit
60c0551762
|
@ -0,0 +1,18 @@
|
|||
url=$mirror/arch-rootfs.tar.gz
|
||||
|
||||
fetch() {
|
||||
wget -c $url -O src/arch-rootfs.tar.gz
|
||||
}
|
||||
|
||||
unpack() {
|
||||
pushd src
|
||||
[ -d root.x86_64 ] || tar xzf arch-rootfs.tar.gz
|
||||
popd
|
||||
}
|
||||
|
||||
install() {
|
||||
pushd src
|
||||
cp -arP root.x86_64/* $root/emul
|
||||
popd
|
||||
cp stuff/enter-emul $root/bin
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
cp /etc/resolv.conf /emul/etc/resolv.conf
|
||||
mount -B /proc /emul/proc
|
||||
mount -B /sys /emul/sys
|
||||
mount -B /dev /emul/dev
|
||||
mount -B /dev/pts /emul/dev/pts
|
||||
|
||||
chroot /emul /bin/sh -l
|
Loading…
Reference in New Issue