Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id E8E83782C23 for ; Thu, 23 Jul 2020 06:51:15 +0000 (UTC) Received: by mail-ej1-f46.google.com with SMTP id lx13so5193268ejb.4 for ; Wed, 22 Jul 2020 23:51:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=nF8OzWfkruJ5boQyRMYLC1LmdXEyMbBzEvKnzzlF2Oo=; b=rQRSK4QQk+IomkfkJplOLeXqAz79fgI8G00/RlBuauPKE/wbu8R6MVMOQU0thxWt13 bjaNZ5F/rDY4Vx/SZNaY/w1+dq9ehTsg+z/xssyk1YOOecSoEhybwDnAQxywvKoQX0j9 tELUpasomqmuWZQ3ZLuxBfynmFQPfykZc3DiMrykbZja9FEsp1mKCCnu8TKoRR/Auf84 5SCQo/8GULJy3YL6pMQswMHcNtkWAyIOvVqg5hMeX6CNBqsHHvIrc+RaAj+x39e29LDw K4GhVx1hL3iNgMAEJ3tCGdfnGHvzIlRQXVLWWDObkCDUOXqOEpRA5YXCA5UVlrRfqMXg oxhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=nF8OzWfkruJ5boQyRMYLC1LmdXEyMbBzEvKnzzlF2Oo=; b=UdB10PWGiKC2txmkxTg+mNkn74GJaQgtXngkkRGV873hQWDary52UuzwFxT1jfOKMb 8QJ7C759vuAHinuOsd6Rw2aqZSzWbwSA78i4e/2EEAgjtVCWaTFtxmpg6PcqS705gOno wIQ6QSpTElW2hb9mbhtlCIczxOZdKMzxSLK4fRVLVSefmqZYY/Eovs7urAbp+t2gumIH dstcjxKNZEiwWnfIpp6n7+EsLJRMPB8rGegRJiuBncWun9Ot+BnH+l7fnvaHywqbgPPu aM/1SN1XDfyKUKVdOkyoUg1b0Dh8fq4yZclJWJTvoIxCzzgh/rwcIz8kQrd/SJTVYsCO nesA== X-Gm-Message-State: AOAM533Xh4ZlIG+dJM9NFsNAu18Atz/VCXKX1l5upDCytpgaw5/fT4ON 4aDDmURhJWeH+F4FcwgS5+7ZDc+jAuA47lV9tX9Ugg== X-Google-Smtp-Source: ABdhPJwKxRt1SUVVl6O8kBcMnUeDGwcESeQ4Lt0prWEku9UeucJQcb39Q2/uLY8j+VUy+bBxXbobnqLMCjBy6VXiVJA= X-Received: by 2002:a17:906:648f:: with SMTP id e15mr2849349ejm.99.1595487074859; Wed, 22 Jul 2020 23:51:14 -0700 (PDT) MIME-Version: 1.0 From: Vittorio Mori Date: Thu, 23 Jul 2020 08:51:03 +0200 Message-ID: Subject: SAN boot/aoe support for init script (initramfs) To: alpine-user@lists.alpinelinux.org Content-Type: multipart/alternative; boundary="000000000000573d9405ab16482f" --000000000000573d9405ab16482f Content-Type: text/plain; charset="UTF-8" I am building a boot server with Alpine for my homeserver. I'd like to use aoe (ATA over ethernet) for my SAN, to boot the distro from the SAN directly, with iPXE. I managed to make it work by adding the necessary files into the initram (network modules, aoe modules, aoe utils), but the initramfs init script always ends up to the emergency shell (, and I have to mount sysroot by hand with three commands: ifconfig eth0 up /usr/sbin/aoe-discover mount /dev/ethernet/e0.0p3 /sysroot when I exit the emergency shell, the system boots regularly and everything is fine. I tried to modify the init script, but it looks fairly complex and hard to understand in some parts, and I can't make it work as expected. Can I get some hints on how to put those three commands into init ? Thanks. --000000000000573d9405ab16482f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I am building a boot server with Alpine for my homeserver.=

I'd like to use aoe (ATA over ethernet) for my SAN, to boot the= distro from the SAN directly, with iPXE.

I managed to make it work = by adding the necessary files into the initram (network modules, aoe module= s, aoe utils), but the initramfs init script always ends up to the emergenc= y shell (, and I have to mount sysroot by hand with three commands:

= ifconfig eth0 up
/usr/sbin/aoe-discover
mount /dev/ethernet/e0.0p3 /= sysroot

when I exit the emergency shell, the system boots regularly = and everything is fine.

I tried to modify the init script, but it lo= oks fairly complex and hard to understand in some parts, and I can't ma= ke it work as expected.

Can I get some hints on how to put those thr= ee commands into init ?

Thanks.

--000000000000573d9405ab16482f--