summaryrefslogtreecommitdiff
path: root/initramfs-tools
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2016-04-19 07:40:25 -0400
committerAndrew Cady <d@jerkface.net>2016-04-19 08:04:41 -0400
commit347c217a3f8c88d0356b9fdd30c04b9d9ce64399 (patch)
tree0f6ea037f52990c6520a9d361b9177e218773247 /initramfs-tools
parent864fdaa7ee21712f10b21e4549d20b35b8de5dd0 (diff)
switch to mkinitramfs-based method
Diffstat (limited to 'initramfs-tools')
-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
4 files changed, 84 insertions, 0 deletions
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