<-- Back to WDL Cheatsheet menu: viewtopic.php?p=36426#p36426
recobayu wrote: Mon Sep 20, 2021 3:47 amWiak, is there an instructable for making WDL arch linux like WDL_manjaroxfce?
Here's what I did (using Fredx181 WDL_manjaXFCE howto modified for official Arch Linux iso so most words are quotes from Fred...); hope it helps others (not sure if I made it over-complicated or not). Note that the official Arch Linux ISO I used doesn't come with X installed:
EDIT: See here for creating a much smaller initrd.gz: viewtopic.php?p=36345#p36345
- Create "WDL_arch" folder on ext4 partition
- Download arch ISO and mount it. I used commandline-only iso from here: https://mirror.arizona.edu/archlinux/is ... x86_64.iso
- From mountpoint, copy the file "/arch/X86_64/airootfs.sfs" in ISO to "WDL_arch" folder, and
- copy the linux kernel from "/arch/boot/X86_64/vmlinuz-linux" in ISO to "WDL_arch" folder
Done that, it's all I needed from the arch ISO (you may or may not need more for EFI boot depending what you already use to boot other distros on your system).
- Rename airootfs.sfs to 08airootfs.sfs (that's the only sfs file you need to boot this arch linux official root filesystem)
- Download get_WDLskelinitrd_kmod400rc1.sh.tar from here: https://weedoglinux.rockedge.org/viewto ... p=355#p355 (remove dummy tar and chmod +x). IMPORTANT: NOTE that this script downloads a different skeleton initrd.gz from the one used for manjaro XFCE. This larger/special initrd.gz can handle .zst compressed modules as used in official arch distro /usr/lib/modules, so is needed in this case.
- Run get_WDLskelinitrd_kmod400rc1.sh in "WDL_arch" , then script: modify_initrd_gz.sh and initrd: initrd_kmod_v400rc1.gz will appear
- Run ./modify_initrd_gz.sh initrd_kmod_v400rc1.gz
from terminal in "WDL_arch"
- A skeleton folder "initrd_kmod_v400rc1_decompressed" will appear, leave terminal open for later
- Mount 08airootfs.sfs
- Copy folder inside usr/lib/modules from mounted 08airootfs.sfs (e.g. 5.13.13-arch1-1) to: usr/lib/modules inside "initrd_kmod_v400rc1_decompressed" dir (or: see EDIT above)
- In terminal that's left open (see above) type: exit
- A new date stamped initrd will be created (including the copied kernel modules), when done rename to "initrd.gz" (or leave it as is and point to that name in bootloader config)
How my "WDL_arch" folder looks (not sure if you need the extra UEFI stuff per Fred's manjaro XFCE howto):

- WDL_arch_folder_contents.png (16.73 KiB) Viewed 4879 times
Optional: get the "10gtkdialogGTK3_filemnt64.sfs", see here the https://weedoglinux.rockedge.org/viewto ... p=355#p355 and place also inside "WDL_manjaXFCE" folder
My grub4dos menu entry: (replace "b812c597-8099-4bee-9bb3-8b9c10f1e902" with your UUID)
Code: Select all
title WDL_arch (sda4)
find --set-root uuid () b812c597-8099-4bee-9bb3-8b9c10f1e902
kernel /WDL_arch/vmlinuz-linux w_bootfrom=UUID=b812c597-8099-4bee-9bb3-8b9c10f1e902=/WDL_arch
initrd /WDL_arch/initrd.gz
As you can see, the procedure is very very similar no matter what live distro you are using for making the WDL version. Only major difference for Arch Linux is the special initrd.gz required because Arch uses zst compressed modules. And of course it's a different main rootfs sfs file (only one in this case: airootfs.sfs).
NOTE that this howto is for WeeDogging an official Arch Linux root filesystem which only gives a commanline login (no X or Wayland GUI). This is different from the method I use to construct my usual WDL_Arch64, which is built using WeeDogLinux build_firstrib_rootfs script via archbootstrap script and a specially constructed build plugin that produces a full X desktop using openbox/tint2/pcmanfm combination (or can be easily modified for full Wayland system). You can find build_firstrib_rootfs script here: viewtopic.php?p=37093#p37093
I haven't released latest WDL_Arch f_plugin for use with that yet, but there is an exemplar f_plugin by rockedge for a WDL_Void Linux build here: viewtopic.php?p=37122#p37122
wiak