~alpine/users

3 2

[alpine-user] Multiple initramfs appears not to work

Details
Message ID
<BC8902B1-E1E3-47F5-97D0-2205F9AADACC@supercoders.com.au>
Sender timestamp
1514921622
DKIM signature
missing
Download raw message
Hi folks,

I want to pass multiple initramfs file to Alpine on boot.

The architecture document says it supports such behaviour:
https://wiki.alpinelinux.org/wiki/Architecture
"The kernel will decompress the stream of compressed cpio archives passed to it by the 'append' bootloader option to the root of 'rootfs', a tmpfs automatically mounted at '/' by the kernel at boot."


As far as I can tell, Alpine appears to ignore all except the first initramfs.

I’ve searching the web extensively to find any syslinux.cfg example that does this for Alpine Linux but can find none, so I’m wondering if it has ever been tested or known to work.

I’ve tried a variety of different ways of specifying in syslinux.cfg but none of them seem to work. Here is an example of one such config.

SERIAL 0 115200
TIMEOUT 20
PROMPT 1
DEFAULT virthardened

LABEL virthardened
MENU LABEL Linux virthardened
KERNEL /boot/vmlinuz-virthardened
INITRD /boot/initramfs-virthardened,/boot/rootfs_overlay_initramfs.gz
DEVICETREEDIR /boot/dtbs
APPEND modules=loop,squashfs,sd-mod,usb-storage quiet console=tty0 console=ttyS0,115200

Is anyone able to help me get Alpine to load more than one initramfs?

thanks

Andrew



---
Unsubscribe:  alpine-user+unsubscribe@lists.alpinelinux.org
Help:         alpine-user+help@lists.alpinelinux.org
---
William Pitcock <nenolod@dereferenced.org>
Details
Message ID
<CA+T2pCFfBm2aT4MWX81L_kiHTVsPJ05b8u3eAmU9_LjZB3+iMA@mail.gmail.com>
In-Reply-To
<BC8902B1-E1E3-47F5-97D0-2205F9AADACC@supercoders.com.au> (view parent)
Sender timestamp
1515353096
DKIM signature
missing
Download raw message
Hi,

On Tue, Jan 2, 2018 at 1:33 PM, Andrew Stuart
<andrew.stuart@supercoders.com.au> wrote:
> Hi folks,
>
> I want to pass multiple initramfs file to Alpine on boot.
>
> The architecture document says it supports such behaviour:
> https://wiki.alpinelinux.org/wiki/Architecture

Unfortunately that page needs to be deleted, because it's basically
fantasy land.

> "The kernel will decompress the stream of compressed cpio archives passed to it by the 'append' bootloader option to the root of 'rootfs', a tmpfs automatically mounted at '/' by the kernel at boot."
>
> As far as I can tell, Alpine appears to ignore all except the first initramfs.

That is because the bootloader and kernel do not really work this way.
I spent several months trying to explain this to the author of that
Wiki page.

> I’ve searching the web extensively to find any syslinux.cfg example that does this for Alpine Linux but can find none, so I’m wondering if it has ever been tested or known to work.
>
> I’ve tried a variety of different ways of specifying in syslinux.cfg but none of them seem to work. Here is an example of one such config.
>
> SERIAL 0 115200
> TIMEOUT 20
> PROMPT 1
> DEFAULT virthardened
>
> LABEL virthardened
> MENU LABEL Linux virthardened
> KERNEL /boot/vmlinuz-virthardened
> INITRD /boot/initramfs-virthardened,/boot/rootfs_overlay_initramfs.gz
> DEVICETREEDIR /boot/dtbs
> APPEND modules=loop,squashfs,sd-mod,usb-storage quiet console=tty0 console=ttyS0,115200
>
> Is anyone able to help me get Alpine to load more than one initramfs?

It is not really possible, sorry.

William


---
Unsubscribe:  alpine-user+unsubscribe@lists.alpinelinux.org
Help:         alpine-user+help@lists.alpinelinux.org
---
Details
Message ID
<034B083F-EF92-4CDC-9242-8E7EFF593E18@supercoders.com.au>
In-Reply-To
<CA+T2pCFfBm2aT4MWX81L_kiHTVsPJ05b8u3eAmU9_LjZB3+iMA@mail.gmail.com> (view parent)
Sender timestamp
1515356789
DKIM signature
missing
Download raw message

> "The kernel will decompress the stream of compressed cpio archives passed to it by the 'append' bootloader option to the root of 'rootfs', a tmpfs automatically mounted at '/' by the kernel at boot."
> 
> As far as I can tell, Alpine appears to ignore all except the first initramfs.

>>>>That is because the bootloader and kernel do not really work this way.

Perhaps you can help me understand…..  what code exactly is it that Alpine would require/does not have to support this functionality (that other distros such as Ubuntu & Tiny Core have)?  I’ve read quite a bit of stuff but can’t quite put the finger on how Alpine is different in this regard to for example Ubuntu and Tiny Core Linux and I presume other Linux distros? I had thought that using syslinux to boot would be sufficient.

>>>>It is not really possible, sorry.
OK I can stop trying to find the incantation - that will save me alot of time anyway :-)

thanks

Andrew



---
Unsubscribe:  alpine-user+unsubscribe@lists.alpinelinux.org
Help:         alpine-user+help@lists.alpinelinux.org
---
Details
Message ID
<D9B50CFF-B562-49E4-8E8F-DE676AC075BC@supercoders.com.au>
In-Reply-To
<034B083F-EF92-4CDC-9242-8E7EFF593E18@supercoders.com.au> (view parent)
Sender timestamp
1516531194
DKIM signature
missing
Download raw message
Bumping this - I’d be interested to understand why Alpine isn’t able to handle multiple initramfs


> "The kernel will decompress the stream of compressed cpio archives passed to it by the 'append' bootloader option to the root of 'rootfs', a tmpfs automatically mounted at '/' by the kernel at boot."
> 
> As far as I can tell, Alpine appears to ignore all except the first initramfs.

>>>> That is because the bootloader and kernel do not really work this way.

Perhaps you can help me understand…..  what code exactly is it that Alpine would require/does not have to support this functionality (that other distros such as Ubuntu & Tiny Core have)?  I’ve read quite a bit of stuff but can’t quite put the finger on how Alpine is different in this regard to for example Ubuntu and Tiny Core Linux and I presume other Linux distros? I had thought that using syslinux to boot would be sufficient.

>>>> It is not really possible, sorry.
OK I can stop trying to find the incantation - that will save me alot of time anyway :-)

thanks

Andrew




---
Unsubscribe:  alpine-user+unsubscribe@lists.alpinelinux.org
Help:         alpine-user+help@lists.alpinelinux.org
---
Reply to thread Export thread (mbox)