Mail archive
alpine-aports

[alpine-aports] [PATCH] main/mkinitfs: changed script interpreter for initramfs-init

From: Daniele Coli <danielsan.dani_at_gmail.com>
Date: Fri, 30 Mar 2018 22:47:41 +0200

Set script interpreter explicit to busybox in order to solve
"Kernel panic - not syncing: No init found"; suggestion found
in gentoo forum.
---
 ...01-initramfs-change-interpreter-to-busybox.patch | 21 +++++++++++++++++++++
 main/mkinitfs/APKBUILD                              |  2 ++
 2 files changed, 23 insertions(+)
 create mode 100644 main/mkinitfs/0001-initramfs-change-interpreter-to-busybox.patch
diff --git a/main/mkinitfs/0001-initramfs-change-interpreter-to-busybox.patch b/main/mkinitfs/0001-initramfs-change-interpreter-to-busybox.patch
new file mode 100644
index 0000000000..d69beadeea
--- /dev/null
+++ b/main/mkinitfs/0001-initramfs-change-interpreter-to-busybox.patch
_at_@ -0,0 +1,21 @@
+From a72a0100047b6a448e2eda8fdeb1f1183d583f64 Mon Sep 17 00:00:00 2001
+From: Daniele Coli <danielsan.dani_at_gmail.com>
+Date: Fri, 30 Mar 2018 22:14:10 +0200
+Subject: [PATCH] initramfs-init: set script interpreter explicit to busybox
+
+Changed interpreter in order to solve "Kernel panic - not syncing: No init found";
+suggestion found in gentoo forum.
+---
+diff --git a/initramfs-init.in b/initramfs-init.in
+index bf2d9bd..80980bd 100755
+--- a/initramfs-init.in
++++ b/initramfs-init.in
+_at_@ -1,4 +1,4 @@
+-#!/bin/sh
++#!/bin/busybox sh
+ 
+ # this is the init script version
+ VERSION=_at_VERSION@
+-- 
+2.16.3
+
diff --git a/main/mkinitfs/APKBUILD b/main/mkinitfs/APKBUILD
index b19d81f38c..90d04da59d 100644
--- a/main/mkinitfs/APKBUILD
+++ b/main/mkinitfs/APKBUILD
_at_@ -16,6 +16,7 @@ depends="busybox>=1.28.2-r1 apk-tools>=2.9.1 lddtree>=1.25"
 install="$pkgname.pre-upgrade $pkgname.post-install $pkgname.post-upgrade"
 triggers="$pkgname.trigger=/usr/share/kernel/*"
 source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$_ver.tar.xz
+	0001-initramfs-change-interpreter-to-busybox.patch
 	0001-skip-hooks-on-diskless-install.patch
 	0001-nlplug-findfs-add-primitive-support-for-LUKS2-contai.patch
 	0001-initramfs-do-not-relocate-mountpoint-for-netboot.patch
_at_@ -33,6 +34,7 @@ package() {
 }
 
 sha512sums="906bfbce677d4ece9c9fea7b2a529121740bc9d96ea011be083303cc5c56162f09271b0a673e9e335234ccf2f293109bda1eda333698a95357d0772c86f498af  mkinitfs-3.2.0.tar.xz
+6b218110d4d1c39c58b2b51f1c9e11690d64c857b113748155b8884c6b6c21dfca783a5366ffc6eb963127cde3024c28f7ca42bef93c500fcac009a0802c5d24  0001-initramfs-change-interpreter-to-busybox.patch
 f5c9b21e53c663dac1b8f33f929dbe067492f0dc1bd5ef5310ef531033f31fc3fa0b6de6dce03cecaf90b8ed47b278d0f1f7c64dbbeede7621c895ee3ea79864  0001-skip-hooks-on-diskless-install.patch
 4d298d73cc6e557c51de805721ef4b9f002498af5dd9f0aebfd6620ec84d1fadde76888bc2d40efc71dc0a8497aa0586ac65d596eb0021bfed633adcc3aca3b4  0001-nlplug-findfs-add-primitive-support-for-LUKS2-contai.patch
 4387357cfcd3441c5d8777e42c0e62a73fa446aacd2faac081947afc39bdd8fb91e12b34f3b69a6827bd7d0705f54514b77c0ff4c38ee0d70553050117c42576  0001-initramfs-do-not-relocate-mountpoint-for-netboot.patch"
-- 
2.16.3
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Fri Mar 30 2018 - 22:47:41 GMT