diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | initramfs-tools/initramfs.conf | 62 | ||||
-rw-r--r-- | initramfs-tools/modules | 11 | ||||
-rwxr-xr-x | initramfs-tools/scripts/local-bottom/samizdat | 9 | ||||
-rw-r--r-- | initramfs-tools/scripts/samizdat | 2 | ||||
-rw-r--r-- | initrd.cpio | bin | 96761344 -> 0 bytes | |||
-rwxr-xr-x | initrd.sh | 17 | ||||
-rwxr-xr-x | initrd/init | 2 | ||||
-rw-r--r-- | isolinux/live.cfg | 8 |
9 files changed, 92 insertions, 20 deletions
@@ -3,3 +3,4 @@ debian-live-8.4.0-amd64-gnome-desktop.iso | |||
3 | boot | 3 | boot |
4 | var | 4 | var |
5 | isolinux/live/initrd.img | 5 | isolinux/live/initrd.img |
6 | isolinux/live/vmlinuz | ||
diff --git a/initramfs-tools/initramfs.conf b/initramfs-tools/initramfs.conf new file mode 100644 index 0000000..93f88bc --- /dev/null +++ b/initramfs-tools/initramfs.conf | |||
@@ -0,0 +1,62 @@ | |||
1 | # | ||
2 | # initramfs.conf | ||
3 | # Configuration file for mkinitramfs(8). See initramfs.conf(5). | ||
4 | # | ||
5 | # Note that configuration options from this file can be overridden | ||
6 | # by config files in the /etc/initramfs-tools/conf.d directory. | ||
7 | |||
8 | # | ||
9 | # MODULES: [ most | netboot | dep | list ] | ||
10 | # | ||
11 | # most - Add most filesystem and all harddrive drivers. | ||
12 | # | ||
13 | # dep - Try and guess which modules to load. | ||
14 | # | ||
15 | # netboot - Add the base modules, network modules, but skip block devices. | ||
16 | # | ||
17 | # list - Only include modules from the 'additional modules' list | ||
18 | # | ||
19 | |||
20 | MODULES=most | ||
21 | |||
22 | # | ||
23 | # BUSYBOX: [ y | n ] | ||
24 | # | ||
25 | # Use busybox if available. | ||
26 | # | ||
27 | |||
28 | BUSYBOX=y | ||
29 | |||
30 | # | ||
31 | # KEYMAP: [ y | n ] | ||
32 | # | ||
33 | # Load a keymap during the initramfs stage. | ||
34 | # | ||
35 | |||
36 | KEYMAP=n | ||
37 | |||
38 | # | ||
39 | # COMPRESS: [ gzip | bzip2 | lzma | lzop | xz ] | ||
40 | # | ||
41 | |||
42 | COMPRESS=gzip | ||
43 | |||
44 | # | ||
45 | # NFS Section of the config. | ||
46 | # | ||
47 | |||
48 | # | ||
49 | # DEVICE: ... | ||
50 | # | ||
51 | # Specify a specific network interface, like eth0 | ||
52 | # Overridden by optional ip= bootarg | ||
53 | # | ||
54 | |||
55 | DEVICE= | ||
56 | |||
57 | # | ||
58 | # NFSROOT: [ auto | HOST:MOUNT ] | ||
59 | # | ||
60 | |||
61 | NFSROOT=auto | ||
62 | |||
diff --git a/initramfs-tools/modules b/initramfs-tools/modules new file mode 100644 index 0000000..dd9dc54 --- /dev/null +++ b/initramfs-tools/modules | |||
@@ -0,0 +1,11 @@ | |||
1 | # List of modules that you want to include in your initramfs. | ||
2 | # They will be loaded at boot time in the order below. | ||
3 | # | ||
4 | # Syntax: module_name [args ...] | ||
5 | # | ||
6 | # You must run update-initramfs(8) to effect this change. | ||
7 | # | ||
8 | # Examples: | ||
9 | # | ||
10 | # raid1 | ||
11 | # sd_mod | ||
diff --git a/initramfs-tools/scripts/local-bottom/samizdat b/initramfs-tools/scripts/local-bottom/samizdat new file mode 100755 index 0000000..376353d --- /dev/null +++ b/initramfs-tools/scripts/local-bottom/samizdat | |||
@@ -0,0 +1,9 @@ | |||
1 | #!/bin/sh | ||
2 | if [ "$1" = prereqs ]; then | ||
3 | echo | ||
4 | exit | ||
5 | fi | ||
6 | |||
7 | echo 'Hello, world!' | ||
8 | read line | ||
9 | echo BOOT=samizdat >> /conf/param.conf | ||
diff --git a/initramfs-tools/scripts/samizdat b/initramfs-tools/scripts/samizdat new file mode 100644 index 0000000..e41c65e --- /dev/null +++ b/initramfs-tools/scripts/samizdat | |||
@@ -0,0 +1,2 @@ | |||
1 | export PS1='samizdat\$ ' | ||
2 | exec sh | ||
diff --git a/initrd.cpio b/initrd.cpio deleted file mode 100644 index 877926b..0000000 --- a/initrd.cpio +++ /dev/null | |||
Binary files differ | |||
@@ -1,15 +1,4 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | set -ex | |
3 | input_base=initrd.cpio | 3 | cp -f /boot/vmlinuz-$(uname -r) isolinux/live/vmlinuz |
4 | input_dir=initrd | 4 | /usr/sbin/mkinitramfs -d initramfs-tools -o isolinux/live/initrd.img $(uname -r) |
5 | output=isolinux/live/initrd.img | ||
6 | |||
7 | output_tmp=${output}~ | ||
8 | |||
9 | set -e | ||
10 | |||
11 | cp -f --reflink=auto "$input_base" "$output_tmp" | ||
12 | # (cat "$input_base"; cd "$input_dir"; find . -depth|cpio -ov|gzip -c) > "$output"~ | ||
13 | (cd "$input_dir"; find . -depth|cpio -H newc -ov -A -O "../$output_tmp") | ||
14 | gzip "$output_tmp" | ||
15 | mv -f "$output_tmp".gz "$output" | ||
diff --git a/initrd/init b/initrd/init deleted file mode 100755 index 10addb5..0000000 --- a/initrd/init +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | exec sh | ||
diff --git a/isolinux/live.cfg b/isolinux/live.cfg index d8161a9..698d681 100644 --- a/isolinux/live.cfg +++ b/isolinux/live.cfg | |||
@@ -1,12 +1,12 @@ | |||
1 | label live-amd64 | 1 | label live-amd64 |
2 | menu label ^Live (amd64) | 2 | menu label ^Samizdat (amd64) |
3 | menu default | 3 | menu default |
4 | linux /live/vmlinuz | 4 | linux /live/vmlinuz |
5 | initrd /live/initrd.img | 5 | initrd /live/initrd.img |
6 | append boot=live components quiet splash | 6 | append components quiet splash |
7 | 7 | ||
8 | label live-amd64-failsafe | 8 | label live-amd64-failsafe |
9 | menu label ^Live (amd64 failsafe) | 9 | menu label ^Samizdat (amd64 failsafe) |
10 | linux /live/vmlinuz | 10 | linux /live/vmlinuz |
11 | initrd /live/initrd.img | 11 | initrd /live/initrd.img |
12 | append boot=live components memtest noapic noapm nodma nomce nolapic nomodeset nosmp nosplash vga=normal | 12 | append components memtest noapic noapm nodma nomce nolapic nomodeset nosmp nosplash vga=normal |