-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME
More file actions
46 lines (32 loc) · 1.16 KB
/
README
File metadata and controls
46 lines (32 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Egg Linux
"A penguin is an egg's way of making another egg."
This is a small reproducible and self-reproducing Linux distribution.
How to use:
1. Fetch package sources:
find package -name sources -execdir wget -nc -i {} +
To check that all sources were downloaded, run this command again;
when all sources are present, it will only emit lines of the form
`File ‘...’ already there; not retrieving.`
2. Build:
./hatch x
3. Install to a USB key (on device file USBDEV):
dd if=/dev/zero of=USBDEV bs=1M count=1
parted USBDEV
mklabel gpt
mkpart primary 1MB 2MB
set 1 bios_grub on
mkpart primary ext2 2MB 100%
mke2fs -t ext2 USBDEV2
mount USBDEV2 /mnt
cp -aT x/tree /mnt
chown -R root:root /mnt
grub-install --boot-directory=/mnt/boot USBDEV
umount /mnt
4. Boot from that USB key. The init is bash.
5. If you want to test that it can reproduce itself, then build it
from that bash:
export PATH=/usr/bin:/usr/sbin:/bin:/sbin
mount -o remount,rw /
/usr/src/egg/hatch /tmp/y
6. If you like, let me know how it went: see the instructions at
https://github.com/stebulus/egg-linux-build-reports