Browse Source

Initramfs tweaks.

parazyd 2 years ago
parent
commit
2d423ebbb2
2 changed files with 6 additions and 2 deletions
  1. 1 1
      initramfs/Makefile
  2. 5 1
      initramfs/skel/init

+ 1 - 1
initramfs/Makefile

@@ -7,7 +7,7 @@ BUSYBOX_VERSION = 1.27.2
7 7
 BUSYBOX_URL = https://busybox.net/downloads/busybox-$(BUSYBOX_VERSION).tar.bz2
8 8
 
9 9
 GNUPG = 1
10
-GNUPG_VERSION = 2.2.3-1
10
+GNUPG_VERSION = 2.1.18-8~deb9u1
11 11
 GNUPG_URL = https://deb.debian.org/debian/pool/main/g/gnupg2/gpgv-static_$(GNUPG_VERSION)_$(ARCH).deb
12 12
 
13 13
 all: dirs busybox gnupg initramfs.cpio.gz

+ 5 - 1
initramfs/skel/init

@@ -1,5 +1,5 @@
1 1
 #!/bin/sh
2
-# heads live - copyright 2017 parazyd <parazyd@dyne.org>
2
+# heads live - copyright 2017-2018 Ivan J. <parazyd@dyne.org>
3 3
 # See https://www.gnu.org/licenses for license details (GPL-3)
4 4
 
5 5
 rescue_shell() {
@@ -12,6 +12,10 @@ mount -t devtmpfs none /dev
12 12
 mount -t proc none /proc
13 13
 mount -t sysfs none /sys
14 14
 
15
+# Settle down devices. The USB drive sometimes doesn't come up fast
16
+# enough, therefore, we need to wait a few seconds.
17
+sleep 3
18
+
15 19
 # First check if we have booted from a cd, otherwise it's probably
16 20
 # a usb drive
17 21
 for i in /dev/sr* /dev/sd* ; do