Received: from fgw23-4.mail.saunalahti.fi (fgw23-4.mail.saunalahti.fi [62.142.5.110]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 7AA6A782BDA for <~alpine/users@lists.alpinelinux.org>; Thu, 21 May 2020 18:05:59 +0000 (UTC) Received: from sinitiainen (85-156-156-197.elisa-laajakaista.fi [85.156.156.197]) by fgw23.mail.saunalahti.fi (Halon) with ESMTP id b8af72db-9b8d-11ea-8ccc-005056bdfda7; Thu, 21 May 2020 21:05:58 +0300 (EEST) Received: from kuusitiainen.riihineva.no-ip.org ([192.168.1.40]) by sinitiainen with esmtp (Exim 4.71) (envelope-from ) id 1jbpZt-0008DE-Ls; Thu, 21 May 2020 21:05:57 +0300 Subject: Re: An issue with a DIY rescue CD From: Timo Ketola To: ~alpine/users@lists.alpinelinux.org References: <9d00eb29-f7c1-abce-d3ac-6bc85fad6c5a@riihineva.no-ip.org> Cc: Mr Green Message-ID: Date: Thu, 21 May 2020 21:05:57 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <9d00eb29-f7c1-abce-d3ac-6bc85fad6c5a@riihineva.no-ip.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Hi again, I actually solved this for now by hacking /etc/init.d/modloop: diff --git a/main/openrc/modloop.initd b/main/openrc/modloop.initd index 87069b487a..5491ca029f 100755 --- a/main/openrc/modloop.initd +++ b/main/openrc/modloop.initd @@ -31,7 +31,10 @@ find_modloop() { IFS="$oifs" for line; do img=${line%%:*} - verify_modloop "$img" || eerror "Failed to verify signature of $img!" + if ! verify_modloop "$img"; then + eerror "Failed to verify signature of $img!" + continue + fi mount "$img" -o loop,ro /.modloop || continue if [ -d /.modloop/modules/$kver ]; then return 0 and by adjusting initfs_cmdline in my custom profile: initfs_cmdline="$initfs_cmdline apkovl=/media/sr0/alpine.apkovl.tar.gz" I think "the correct" solution would be to look only in the drive from where Linux was booted, but I don't know how initramfs could unambiguously tell which drive was the boot drive. My know-how runs out early. -- Timo