void-mklive
void-mklive copied to clipboard
add asahi to image builder
Based on https://github.com/void-linux/void-packages/pull/39796 and tested.
xi -S qemu-user-static lz4 xz
doas ./mkrootfs.sh aarch64
doas ./mkplatformfs.sh -r ../void-packages/hostdir/binpkgs/asahi/ asahi void-aarch64-ROOTFS-20220916.tar.xz
doas ./mkimage.sh void-asahi-PLATFORMFS-20220916.tar.xz
doas xz -d void-asahi-20220916.img.xz
doas dd if=void-asahi-20220916.img of=/dev/sda bs=4M status=progress
xbps-rindex -a *.xbps
xbps-install --repository=$PWD pkgname
Boots from an external drive via UEFI, after using the Asahi Linux install script with "UEFI environment only". The rest follows the docs.
I wish I had access to an M1 to test this.
After doing
doas xz -d void-asahi-20220916.img.xz
doas dd if=void-asahi-20220916.img of=/dev/sda bs=4M status=progress
it can boot the void kernel :)
While support packages are still in PR, is there a simple way to install them by modifying
# XBPS_ARCH=$ARCH xbps-install -S -r /mnt -R "$REPO" base-system
to something like
# XBPS_ARCH=$ARCH xbps-install -S -r /mnt -R "$REPO" base-system -R ??? asahi-base
The booted USB stick has those packages installed, so I'm hoping this is possible. @Duncaen
yes, use the -r flag of mkplatformfs to point it at hostdir/binpkgs/[branch]
@classabbyamp I've done that (see my fist comment), now I'm trying to install them from the booted image into the chroot. Did I miss something?
oh, for that you'll need to sign the packages and serve them with an http server probably
This now works in conjunction with https://github.com/void-linux/void-packages/pull/39796
Simple solution for the local repo, as suggested by @Duncaen on reddit in the past:
xbps-rindex -a *.xbps
xbps-install --repository=$PWD pkgname
@dkwo Hi! Thank you for your work. How can I DM you?
@ZerdoX-x I don't use irc much. All I did is documented in this PR, and the two linked ones. You can ask or report here if you encounter any issues.
@ZerdoX-x I don't use irc much. All I did is documented in this PR, and the two linked ones. You can ask or report here if you encounter any issues.
I just wanted to know if it is possible to install void linux on M1. I installed the default Asahi linux and cannot handle it due to systemd, literally bullshit. But I don't have much technical experience manually installing a custom distro on Asahi without clear instructions from anyone who already did this.
It is possible, but at the moment you'd have to build things yourself, since the relevant PRs have not yet been merged into Void's repo. For this, you may need to gain some familiarity with how Void works, as well as read Asahi documentation. Otherwise, you can wait until things are more mature.
@dkwo Yep.. I understand. This is why I've wanted someone's help or even pay someone for clear instructions and providing support for me