morpheus

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

commit 32184bc4ca655f8d5cd8757ecdc74c42d5ed3efa
parent 3b62ffac66a48e79776664e0e21f35a288b10eac
Author: sin <sin@2f30.org>
Date:   Wed Sep 18 21:22:59 +0100

Don't pack ramdisk by default

Diffstat:
README | 5+----
mkinitrd | 5+++++
qemu-run | 11-----------
qemu-run-initrd | 11+++++++++++
repack | 5-----
stage0 | 5-----
6 files changed, 17 insertions(+), 25 deletions(-)
diff --git a/README b/README @@ -6,15 +6,12 @@ as well as other tools. To build the world use `fakeroot ./stage0'. You need an x86_64 host to build morpheus. -To build a particular package use `fakeroot ./pkgbuild pkgpath'. You -might then need to repack the ramdisk with `fakeroot ./repack'. +To build a particular package use `fakeroot ./pkgbuild pkgpath'. After you've created the ramdisk you can build a bootable image with `sudo ./create-bootable'. You can dd this image to a USB stick if you need to. -Execute `qemu-run' (you will need vde_switch and slirpvde). - Login with `root' and an empty password. Enjoy! diff --git a/mkinitrd b/mkinitrd @@ -0,0 +1,5 @@ +#!/bin/sh + +. ./prepare-env + +pushd $root && find . | cpio --quiet -H newc -o | gzip -9 -n > ../morpheus.img && popd diff --git a/qemu-run b/qemu-run @@ -1,11 +0,0 @@ -#!/bin/sh - -vdesock="/tmp/morpheus-vde" - -ps -ef | grep vde_switch | grep "sock $vdesock" | grep -v grep > /dev/null || { - vde_switch -sock "$vdesock" -daemon -mod 660 -group kvm && - slirpvde -s "$vdesock" --dhcp --daemon -H '10.1.2.0/24' -L '2223:10.1.2.15:22' -} - -qemu-system-x86_64 -enable-kvm -smp 2 -m 1024 -net nic,model=ne2k_pci \ - -net vde,sock="${vdesock}" -kernel root/boot/bzImage -initrd morpheus.img -append "quiet" diff --git a/qemu-run-initrd b/qemu-run-initrd @@ -0,0 +1,11 @@ +#!/bin/sh + +vdesock="/tmp/morpheus-vde" + +ps -ef | grep vde_switch | grep "sock $vdesock" | grep -v grep > /dev/null || { + vde_switch -sock "$vdesock" -daemon -mod 660 -group kvm && + slirpvde -s "$vdesock" --dhcp --daemon -H '10.1.2.0/24' -L '2223:10.1.2.15:22' +} + +qemu-system-x86_64 -enable-kvm -smp 2 -m 1024 -net nic,model=ne2k_pci \ + -net vde,sock="${vdesock}" -kernel root/boot/bzImage -initrd morpheus.img -append "quiet" diff --git a/repack b/repack @@ -1,5 +0,0 @@ -#!/bin/sh - -. ./prepare-env - -pushd $root && find . | cpio --quiet -H newc -o | gzip -9 -n > ../morpheus.img && popd diff --git a/stage0 b/stage0 @@ -18,9 +18,4 @@ for pkg in $pkglist; do ./build pkgs/$pkg done -pushd $root -echo Creating ramdisk -find . | cpio --quiet -H newc -o | gzip -9 -n > ../morpheus.img -popd - echo OK!