Received: from mail-yw1-x1132.google.com (mail-yw1-x1132.google.com [IPv6:2607:f8b0:4864:20::1132]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id B4EA8225B5D for <~alpine/users@lists.alpinelinux.org>; Mon, 11 Nov 2024 18:33:45 +0000 (UTC) Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-6ea053b5929so36525257b3.0 for <~alpine/users@lists.alpinelinux.org>; Mon, 11 Nov 2024 10:33:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731350024; x=1731954824; darn=lists.alpinelinux.org; h=to:references:message-id:date:cc:in-reply-to:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=22EPQeGUNAUvGx4w1uy7mvfAeZc2Peijn3lfj/ffJME=; b=m03ISgivPfx3bjIsvEdnlNE5FXleS4pwX//BKwtEEkyuIQCxC7V/jWSEPhwZhZ0AZz E/x84y9wWezrcwBRI1UxEYmqA2J0R31JvsHIOj5AHEA4vTioNdFRzFgU++w949P6iWSe c3tl4mOKX67uCKIFVxMPJrBsvBjzl8HK/SOz45Bh0wn28b+cOKshAjQfUQOi472JpDUR t5fsfYE1MqNl1OoW1k+9jvtGjjVNohS5aH/clMasiPFKf6zV4MuW+KxHnhBwYCggPk9R 9e+AWkSF/dR8O+kidt8KOfUVg97Nh3Htt+SiCOAsaxcHOZ2knhGgIWAouJJIK3NGSrUW EOBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731350024; x=1731954824; h=to:references:message-id:date:cc:in-reply-to:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=22EPQeGUNAUvGx4w1uy7mvfAeZc2Peijn3lfj/ffJME=; b=R8qMvAEnDCz4LN+0XdJtPo+cEXSVM9Bo2zyvVU21wrgFPBkb1M33IjDHFp6PBBVty5 w62n0kvfE2gZ3Fdj7gu2WsAEWEdmIQW6wnGrAtC/ahCTpdwPv4MstGJOvb1ch45JLEVU v7hXXj+/OPxMfTeuQF8/uIMeVGehskosE3A94Gn6pC5N57NZSdpzseancC9Juh5F6Oaq mCduMTKLQkGzZkWOpgCJcWaKS1KMhjzPYXHCOLPB6OQ/kvBMax1kGLi7WNJzwwNd5dCZ HoRe0bAJMgVX6yDgiUDfvgFvECHkCRir+WRWukAmgZQf43HHR2Ikwi0n0lbjJTIGuLtR lu/w== X-Gm-Message-State: AOJu0YzZc12rcclPytY0/LevexhOdp+8p2oDDOoXmG2R8UKvg1A5euhd 29g6puuKZx9rd7qF7rPQv82BlX9BKQAVVgPLYFOYgg1gYZbNrPiyc47BWYsV X-Google-Smtp-Source: AGHT+IHvz1Is5PWUZSCqJC44B61AkxPNw/5QNts40IUAikSjCVSdc2RUaf1qbOHQdKIwi9n+PBDgLQ== X-Received: by 2002:a05:690c:368b:b0:6ea:813a:a00a with SMTP id 00721157ae682-6eaddf8ad0amr131020107b3.31.1731350024275; Mon, 11 Nov 2024 10:33:44 -0800 (PST) Received: from smtpclient.apple (70-250-118-222.lightspeed.rlghnc.sbcglobal.net. [70.250.118.222]) by smtp.gmail.com with ESMTPSA id 00721157ae682-6eaceb900e8sm21176437b3.127.2024.11.11.10.33.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 Nov 2024 10:33:43 -0800 (PST) From: Isaac Beckett X-Google-Original-From: Isaac Beckett Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Subject: Re: A "diskless" Xen dom0 entirely in the ESP In-Reply-To: <8f1653ba-e803-4b1d-9403-4284e647c3df@pobox.com> Cc: rptb1+alpine@pobox.com Date: Mon, 11 Nov 2024 13:33:43 -0500 Message-Id: <2B1BA8D8-09B8-4727-A075-2D885B55E97F@gmail.com> References: <8f1653ba-e803-4b1d-9403-4284e647c3df@pobox.com> To: ~alpine/users@lists.alpinelinux.org X-Mailer: iPhone Mail (19H386) > On Nov 10, 2024, at 8:39 AM, rptb1+alpine@pobox.com wrote: >=20 > =EF=BB=BFHello. >=20 > I'm hoping for a bit of advice on how to proceed. >=20 > I'm interested in creating an Alpine Xen dom0 that runs entirely from the E= SP partition (a.k.a. the EFI partition). I believe this should be possible b= y combining a clean "diskless" installation with apkovl to provide configura= tion. It doesn't really matter about the bootloader -- I can make Grub or x= en.efi or EFISTUB work. I'm wondering about the best way to achieve my goal= . >=20 > It seems to me that I should be able to install the entire "diskless" Alpi= ne in the initramfs. >=20 > The instructions at https://wiki.alpinelinux.org/wiki/Create_a_Bootable_De= vice seem to get *quite* close to what I want, but of course they are creati= ng a bootable MBR partition, not an initramfs. >=20 > The boot sequence would be: >=20 > 1. UEFI bios > 2. bootloader (optional) > 3. xen.efi > 4. kernel > 5. initramfs > 6. init script > 7. apkovl etc. >=20 > It seems to me that I might need to make a custom initramfs init script th= at *does not* pivot to another root filesystem, since the initramfs will *be= * the diskless filesystem. >=20 > I'm writing to the mailing list to see if anyone else has achieved a simil= ar result, even if in a different way. Or if anyone has a different suggest= ion for how I might achieve my result. Or any short cuts for this work. >=20 > It would be nice if the final system is able to upgrade itself without a l= ot of work, too. >=20 > The initramfs init script seems quite flexible, but I haven't found a way t= o convince it that it's living in a finished diskless installation. >=20 > Thanks! Okay, I=E2=80=99ve seen other folks discuss *how* you could accomplish this (= One File Linux looks especially interesting) But I=E2=80=99m curious as to *why* you want to do this. And why as a Xen do= m0 specifically?=