From 347c217a3f8c88d0356b9fdd30c04b9d9ce64399 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Tue, 19 Apr 2016 07:40:25 -0400 Subject: switch to mkinitramfs-based method --- initramfs-tools/initramfs.conf | 62 +++++++++++++++++++++++++++ initramfs-tools/modules | 11 +++++ initramfs-tools/scripts/local-bottom/samizdat | 9 ++++ initramfs-tools/scripts/samizdat | 2 + 4 files changed, 84 insertions(+) create mode 100644 initramfs-tools/initramfs.conf create mode 100644 initramfs-tools/modules create mode 100755 initramfs-tools/scripts/local-bottom/samizdat create mode 100644 initramfs-tools/scripts/samizdat (limited to 'initramfs-tools') 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 @@ +# +# initramfs.conf +# Configuration file for mkinitramfs(8). See initramfs.conf(5). +# +# Note that configuration options from this file can be overridden +# by config files in the /etc/initramfs-tools/conf.d directory. + +# +# MODULES: [ most | netboot | dep | list ] +# +# most - Add most filesystem and all harddrive drivers. +# +# dep - Try and guess which modules to load. +# +# netboot - Add the base modules, network modules, but skip block devices. +# +# list - Only include modules from the 'additional modules' list +# + +MODULES=most + +# +# BUSYBOX: [ y | n ] +# +# Use busybox if available. +# + +BUSYBOX=y + +# +# KEYMAP: [ y | n ] +# +# Load a keymap during the initramfs stage. +# + +KEYMAP=n + +# +# COMPRESS: [ gzip | bzip2 | lzma | lzop | xz ] +# + +COMPRESS=gzip + +# +# NFS Section of the config. +# + +# +# DEVICE: ... +# +# Specify a specific network interface, like eth0 +# Overridden by optional ip= bootarg +# + +DEVICE= + +# +# NFSROOT: [ auto | HOST:MOUNT ] +# + +NFSROOT=auto + 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 @@ +# List of modules that you want to include in your initramfs. +# They will be loaded at boot time in the order below. +# +# Syntax: module_name [args ...] +# +# You must run update-initramfs(8) to effect this change. +# +# Examples: +# +# raid1 +# 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 @@ +#!/bin/sh +if [ "$1" = prereqs ]; then + echo + exit +fi + +echo 'Hello, world!' +read line +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 @@ +export PS1='samizdat\$ ' +exec sh -- cgit v1.2.3