Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 3BD3A782C02 for <~alpine/users@lists.alpinelinux.org>; Fri, 24 Jul 2020 10:46:14 +0000 (UTC) Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 06OAWOrE010120 for <~alpine/users@lists.alpinelinux.org>; Fri, 24 Jul 2020 06:46:13 -0400 Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 32fsayyxt3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <~alpine/users@lists.alpinelinux.org>; Fri, 24 Jul 2020 06:46:12 -0400 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 06OAj7ZL028840 for <~alpine/users@lists.alpinelinux.org>; Fri, 24 Jul 2020 10:46:10 GMT Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by ppma04ams.nl.ibm.com with ESMTP id 32brq876ed-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <~alpine/users@lists.alpinelinux.org>; Fri, 24 Jul 2020 10:46:10 +0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 06OAk8LI31851002 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <~alpine/users@lists.alpinelinux.org>; Fri, 24 Jul 2020 10:46:08 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 915D8A4059 for <~alpine/users@lists.alpinelinux.org>; Fri, 24 Jul 2020 10:46:08 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6C739A4040 for <~alpine/users@lists.alpinelinux.org>; Fri, 24 Jul 2020 10:46:08 +0000 (GMT) Received: from [9.171.33.170] (unknown [9.171.33.170]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP for <~alpine/users@lists.alpinelinux.org>; Fri, 24 Jul 2020 10:46:08 +0000 (GMT) Subject: Re: SAN boot/aoe support for init script (initramfs) To: ~alpine/users@lists.alpinelinux.org References: From: Tuan Hoang Message-ID: <8c8b1000-11f2-3f98-0037-6983f6d70b88@linux.ibm.com> Date: Fri, 24 Jul 2020 12:46:08 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-07-24_03:2020-07-24,2020-07-24 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 spamscore=0 priorityscore=1501 clxscore=1011 phishscore=0 suspectscore=3 mlxlogscore=999 lowpriorityscore=0 mlxscore=0 impostorscore=0 bulkscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2007240076 This sounds interesting. Guess I'd setup a VM acting as SAN and PXE server to feed storage disks to other VM booting with AOE. Then I could have a look into patching initramfs. Sounds like a plan. On 7/23/20 8:51 AM, Vittorio Mori wrote: > 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. >