On the way of AlpineLinux #377
Replies: 14 comments 3 replies
-
The problem seem to be PID, init exit in emergency mode and we lost PID 1 To check the PID, just: At this point we must to start our |
Beta Was this translation helpful? Give feedback.
-
I'm sharing the resulting experimental ISOs AlpineLinux, to let you to try and look for a solution. The oldest one mount filesystem on /newroot, actual mount in on /sysroot, I'm unsure on that is the right place. |
Beta Was this translation helpful? Give feedback.
-
Since the error I get is:
I tried replacing |
Beta Was this translation helpful? Give feedback.
-
How newroot is mounted: |
Beta Was this translation helpful? Give feedback.
-
I tried editing
Unfortunately, the problem remains exactly the same:
Really I don't know where find a solution. |
Beta Was this translation helpful? Give feedback.
-
To get help I wrote in Alpine Linux on Reddit |
Beta Was this translation helpful? Give feedback.
-
Just had the honor to contact @ncopa the AlpineLinux author, so I think we will found a solution! |
Beta Was this translation helpful? Give feedback.
-
I downloaded the ISO and booted it in qemu, and was able to reproduce. I don't think this can be solved without modifying mkinitfs. The purpose of initramfs is to find and mount the root file system. mkinitfs is designed for the Alpine case, where rootfs is either a block device (eg partition, device-mapper, raid device etc) or a tmpfs system. There is currently no way to tell it to mount a loopback device file within other block device. (eg mount a squashfs file on iso9660 file system. It is simply not designed to do it. So your options here is to either patch mkinitfs' init, use other initramfs generator that supports this use case, or write your own initramfs init script. |
Beta Was this translation helpful? Give feedback.
-
I'm restartig to try with dracut, already converted the code to it... until now I can't get module overlayfs installed, we will see. |
Beta Was this translation helpful? Give feedback.
-
After made an unsuccessfull tempt on Fedora with dracut, I put myself again on Alpine and mkinitfs... and like a young Serendip Prince, I was able to boot from my ISO and revised a little my sidecar. We must to let init to start his job and try to mount /sysroot - type There is much to do again, this is - at last - just a workaround... but let me to overpass this step, pratics with Alpine and will see that can happen and if is possible to find collaborations. If someone want reply the experiment, the ISO is already on experimental ISOs AlpineLinux, I removed the previous ones. alpine-booting-live-video.mp4 |
Beta Was this translation helpful? Give feedback.
-
Today, for the first time, I was able to remaster and reinstall Alpine Linux using eggs from sources... Is not complete yet, I must to create an APKBUILD package, but at last is more than I waited in so - relative - short time: about 3 weeks. I hope this will extend eggs to others distros too, it there is interests. |
Beta Was this translation helpful? Give feedback.
-
Package penguins-eggs for Alpine is not so bad - but for me is difficult and need time or help - so this morning I just created a manual installation of penguins-eggs, to let curious to remaster and install their Alpine derivatives distros. eggs at last is a node program and all end in So I changed a bit the install-eggs-dev to create this structure and link to it. This ha the vantage it's on /usr so it's present on the live too. Now when we start our remastered ISO, we can simply install the system using krill, the eggs CLI installer. There is again same way to do, but we can already look for new horizonts. A new video |
Beta Was this translation helpful? Give feedback.
-
I did the Alpine package for penguins-eggs on my fork and I'm waiting will be accepted on master. This is the status, read all discussion, I explain the problems I had. In the while is possible install penguins-eggs on Alpine usig my get-eggs. Package released for Alpine is version 10.0.28, but in the while I'm working on calamares too for Alpine. I was not able to get calamares running on Alpine 3.20, so I decide to try with the compiled version on 3.18. Something is happening... the program load, the configurations, is almost OK: eggs now can install/remove calamares and configure it... Note: calamares stop, unpacking the filesystem. You can test it downloading the colibri-318 edition on my sf page. |
Beta Was this translation helpful? Give feedback.
-
Same suggestions? I feel me a bit alone in this adventure... It's OK, but... |
Beta Was this translation helpful? Give feedback.
-
I'm trying to extend
penguins-eggs
to AlpineLinux, something is already working...Alpine colibri
I build an AlpineLinux following this guide: WAY-TO-ALPINE.
eggs status
boot from live
sidecar.sh
I created an initramfs-lts for live, and put inside
/live/
on the ISO a script namedsidecar.sh
.After booting the system go in emergency mode. Then, I just create
/mnt
and mount cdrom on it:This is the result:
Unfortunately, while
filestem.squashfs
is correctly mounted RW in/newroot
, theswitch_root /newroot /sbin/init
is not performed.I'm writing the progress on WAY-TO-ALPINE.md.
Video
Beta Was this translation helpful? Give feedback.
All reactions