summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--initramfs-tools/initramfs.conf62
-rw-r--r--initramfs-tools/modules11
-rwxr-xr-xinitramfs-tools/scripts/local-bottom/samizdat9
-rw-r--r--initramfs-tools/scripts/samizdat2
-rw-r--r--initrd.cpiobin96761344 -> 0 bytes
-rwxr-xr-xinitrd.sh17
-rwxr-xr-xinitrd/init2
-rw-r--r--isolinux/live.cfg8
9 files changed, 92 insertions, 20 deletions
diff --git a/.gitignore b/.gitignore
index d95bd06..f5e47d8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@ debian-live-8.4.0-amd64-gnome-desktop.iso
3boot 3boot
4var 4var
5isolinux/live/initrd.img 5isolinux/live/initrd.img
6isolinux/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
20MODULES=most
21
22#
23# BUSYBOX: [ y | n ]
24#
25# Use busybox if available.
26#
27
28BUSYBOX=y
29
30#
31# KEYMAP: [ y | n ]
32#
33# Load a keymap during the initramfs stage.
34#
35
36KEYMAP=n
37
38#
39# COMPRESS: [ gzip | bzip2 | lzma | lzop | xz ]
40#
41
42COMPRESS=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
55DEVICE=
56
57#
58# NFSROOT: [ auto | HOST:MOUNT ]
59#
60
61NFSROOT=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
2if [ "$1" = prereqs ]; then
3 echo
4 exit
5fi
6
7echo 'Hello, world!'
8read line
9echo 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 @@
1export PS1='samizdat\$ '
2exec sh
diff --git a/initrd.cpio b/initrd.cpio
deleted file mode 100644
index 877926b..0000000
--- a/initrd.cpio
+++ /dev/null
Binary files differ
diff --git a/initrd.sh b/initrd.sh
index 080127c..5e7ed90 100755
--- a/initrd.sh
+++ b/initrd.sh
@@ -1,15 +1,4 @@
1#!/bin/sh 1#!/bin/sh
2 2set -ex
3input_base=initrd.cpio 3cp -f /boot/vmlinuz-$(uname -r) isolinux/live/vmlinuz
4input_dir=initrd 4/usr/sbin/mkinitramfs -d initramfs-tools -o isolinux/live/initrd.img $(uname -r)
5output=isolinux/live/initrd.img
6
7output_tmp=${output}~
8
9set -e
10
11cp -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")
14gzip "$output_tmp"
15mv -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
2exec 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 @@
1label live-amd64 1label 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
8label live-amd64-failsafe 8label 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