summaryrefslogtreecommitdiff
path: root/src/initrd.sh
diff options
context:
space:
mode:
authorGordon GECOS <u@adam>2020-10-25 18:13:54 -0400
committerGordon GECOS <u@adam>2020-10-25 18:13:54 -0400
commit4840616b1fdf95e86ce21109063370f046289d9f (patch)
tree81a200e203fe9b6a0012f2fed69e7dfb953f53e1 /src/initrd.sh
parenta8b5f0c06f5f8aaff8afa7ff188a3f4e95d7e725 (diff)
commit everything for steve
Diffstat (limited to 'src/initrd.sh')
-rwxr-xr-xsrc/initrd.sh4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/initrd.sh b/src/initrd.sh
index e363c83..2ec278d 100755
--- a/src/initrd.sh
+++ b/src/initrd.sh
@@ -11,7 +11,6 @@ initrd=${samizdat_linux_dir}/initrd.img
11vmlinuz=${samizdat_linux_dir}/vmlinuz 11vmlinuz=${samizdat_linux_dir}/vmlinuz
12 12
13conf_dir=$samizdat_initramfs_conf_dir 13conf_dir=$samizdat_initramfs_conf_dir
14apt_dependencies=$samizdat_initrd_files_dir/initrd-dependencies.txt
15 14
16get_kernel_version() 15get_kernel_version()
17{ 16{
@@ -44,9 +43,6 @@ force_rebuild()
44 43
45rebuild() 44rebuild()
46{ 45{
47 [ ! -f "$apt_dependencies" ] ||
48 sudo apt-get install -q=10 --no-upgrade -y $(cat "$apt_dependencies")
49
50 set -ex 46 set -ex
51 cp -f /boot/vmlinuz-"${kernel_version}" "$vmlinuz" 47 cp -f /boot/vmlinuz-"${kernel_version}" "$vmlinuz"
52 /usr/sbin/mkinitramfs -d "$conf_dir" -o "$initrd" "${kernel_version}" || force_rebuild 48 /usr/sbin/mkinitramfs -d "$conf_dir" -o "$initrd" "${kernel_version}" || force_rebuild