morpheus

suckless linux distro
git clone git://git.2f30.org/morpheus
Log | Files | Refs | Submodules | README | LICENSE

commit 60c05517628c456470c3138276f4c681aff58752
parent e6c30c4cb24ac898d93e9e1b03d3c8adc8b0ce39
Author: sin <sin@2f30.org>
Date:   Thu, 13 Feb 2014 14:23:43 +0000

Add arch-rootfs build script

Diffstat:
Apkgs/arch-rootfs | 18++++++++++++++++++
Astuff/enter-emul | 9+++++++++
2 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/pkgs/arch-rootfs b/pkgs/arch-rootfs @@ -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 +} diff --git a/stuff/enter-emul b/stuff/enter-emul @@ -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