marcan changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | "Does XXX work yet?": https://alx.sh/fs | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Topics: #asahi-dev #asahi-re #asahi-gpu #asahi-alt #asahi-stream #asahi-offtopic | Keep things on topic | Logs: https://alx.sh/l/asahi
i509vcb has joined #asahi
possiblemeatball has joined #asahi
vlvrd has joined #asahi
marvin24_ has joined #asahi
vlvrd has quit [Quit: Leaving]
marvin24 has quit [Ping timeout: 480 seconds]
<i509vcb> I *may* have run mkfs.swap on RecoveryOSContainer, have not set the swapfile on, is there something I can do to undo that error or am I doomed to idevicerestore/borrowing my mom's computer for dfu restore?
xadammr has joined #asahi
Brainium has quit [Quit: Konversation terminated!]
<i509vcb> still in linux for context
<i509vcb> did get this ominous "wiping old apfs signature"
<chadmed> i509vcb: you will need a device with apple configurator unfortunately but you dont need to do a full wipe iirc
<chadmed> so long as the partition table is as configurator expects, you can do the "revive" option and it will rebuild the system wide rOS container and leave everything else alone
<chadmed> (cc marcan because he figured this out... after i did the exact same thing you just did)
<i509vcb> Ok so I guess I get to borrow my mom's laptop for a bit
dylanchapell has quit [Read error: Connection reset by peer]
<i509vcb> Interesting I can still hit Linux but there is the fun part of holding the power button for more than 10s
tertu2 has joined #asahi
dylanchapell has joined #asahi
tertu has quit [Ping timeout: 480 seconds]
gabuscus has quit []
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Dementor has quit [Quit: Ping timeout (120 seconds)]
<i509vcb> Error 21, I guess I have to clean install
ourdumbfuture has joined #asahi
<marcan> i509vcb: there's a known fix for borking that partition
<marcan> took me a while to figure it out
<i509vcb> Well I'm open to hear it
<marcan> boot into recoveryOS, format it as APFS, create the Recovery container with the correct role ('R'), delete the default container it created, go back to Linux, fix the partition type GUID which diskutil will have screwed up (and make sure RecoveryOSContainer is still the name just in case), then do a Revive with Apple Configurator
gabuscus has joined #asahi
<marcan> it can recover from that state (empty but present and correct recovery container)
<i509vcb> But if a problem, I can't enter recoveryOS
<marcan> why not?
<marcan> that partition is the system/fallback recoveryOS
<i509vcb> You hold the power button for 10s?
<marcan> yes
<i509vcb> I can still get to Linux but can't swap back to macOS
<marcan> that should get you into paired recoveryOS for whatever OS is your default boot OS right now
<marcan> make sure you hold it and don't double tap it or anything like that
<marcan> what happens if you hold the power button for 10s?
<i509vcb> Doing that
<i509vcb> Huh I did get something
<i509vcb> Why does a double tap not work?
<marcan> because that forces system recoveryOS fallback
<marcan> which is what you wiped
<i509vcb> Ah ok
<i509vcb> From there I do what?
<i509vcb> Diskutil, right, I forgot to read
<marcan> `diskutil list` to get the state of things, `diskutil eraseVolume apfs RecoveryOSContainer <partition>` to format the partition properly
<marcan> then `diskutil list` again to see what you have, `diskutil apfs addVolume <container device> apfs Recovery -role R` to create the Recovery volume
<i509vcb> using disk0s6 in my case?
<marcan> yes presumably
<marcan> for <container device> use the synthesized disk (disk2 or whatever shows up after you format it)
<marcan> then finally `diskutil apfs deleteVolume <old default volume>` (to delete the other volume than Recovery that the eraseVolume created)
<marcan> then back to linux and edit the partition type back to what it needs to be (modern fdisk should have it in the list), and set the name too just in case if it went away
<marcan> (for back to linux just reboot, assuming that's still your default boot OS)
<marcan> the reason this state is dangerous is that if there's a problem with your default boot OS/recoveryOS *then* you end up in an unrecoverable state as there's no way to switch OSes without a working recoveryOS
Aya_Takahashi has quit [Remote host closed the connection]
<marcan> but as long as you have Linux as the default OS and the installer did its job properly with recoveryOS (which it had to, otherwise step2 wouldn't have worked), you can recovery
<marcan> *recover
<Zeroine> hi marcan
<marcan> (for those unaware: where I say "unrecoverable state" I mean without a full wipe. DFU full wipe always works but wipes your data.)
<Zeroine> have a great day!
<marcan> thanks
rvalue has joined #asahi
<marcan> I wonder if I can just do this again and take a disk image of the empty recoveryOS container and publish it, that would make this mess a lot easier to solve for people
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<marcan> assuming there's nothing particularly unique about an empty APFS disk image
<i509vcb> Initial state of disk0:
<i509vcb> 0: GUID_Partiton_scheme
<i509vcb> 1: APFS_ISC
<i509vcb> 2: Container disk3
<i509vcb> 3: Container disk2
<i509vcb> 4: EFI - ASAHI
<i509vcb> 5: Linux Filesystem
<i509vcb> 6: Apple_APFS_Recovery
Z750 has quit [Quit: Ping timeout (120 seconds)]
Z750 has joined #asahi
<i509vcb> where 6 is the partition I messed up
<i509vcb> I can run eraseVolume disk0s6
<i509vcb> But then it refuses to allow the addVolume Recovery
<nicolas17> marcan: is there anything particularly unique about a functional recoveryOS? does it need to be personalized and blessed by the bootpolicy or something?
<marcan> nicolas17: yes, it's at the very least per-machine-type
<marcan> and there are big hex IDs involved which I doubt are constant
<nicolas17> oh bleh
<nicolas17> I was wondering if a Linux tool could get the contents off an ipsw and recover it
<i509vcb> > The given disk is not an apfs container reference
<nicolas17> but yeah, I guess making an empty one and letting AC2 deal with the rest is better
<marcan> on paper yes, but it would be reimplementing the whole bootability process
<marcan> which I've avoided doing so far
<marcan> you could probably at least reuse the existing bootpolicy and avoid talking to SEP
<marcan> i509vcb: `diskutil list again` and look for the synthesized disk
<marcan> should be disk<n>
<marcan> that is what addVolume needs
<marcan> -again
<i509vcb> Ah synthesized
<nicolas17> marcan: oh in case you missed it, there's a new feature in the latest macOS 14 beta: you can now DFU revive or restore a Mac from another Mac using Finder, instead of needing Apple Configurator
<marcan> neat
<i509vcb> Hmm a new synthesized disk appeared after the first diskutil command, disk6
<i509vcb> I'd guess that?
<i509vcb> 5.4GB Physical Store disk0s6
<i509vcb> Okay that seemed to run
jeisom has quit [Quit: Leaving]
<i509vcb> Double tap for me to the startup options
<i509vcb> Thanks marcan, now to fix the type Linux side and not do the same mistake again
jeisom has joined #asahi
<nicolas17> i509vcb: note that will not give you a working recoveryOS, it will give you an empty partition that Apple Configurator is capable of recovering; you'll still need your mom's laptop :P
<i509vcb> Well I guess I'm not done yet
<nicolas17> :)
<i509vcb> My device isn't appearing in recovery mode anymore though?
jeisom has quit [Ping timeout: 480 seconds]
<i509vcb> Ok now I got to that
<i509vcb> Had to release when it said loading startup options
marvin24 has joined #asahi
marvin24_ has quit [Ping timeout: 480 seconds]
<i509vcb> What type did I need to set that partition to in fdisk?
<i509vcb> APFS, Apple Silicon recovery?
<marcan> apple silicon recovery
<marcan> you should use DFU mode
<marcan> not "recovery" mode
<marcan> I don't know why but the various recovery mode nonsense never seems to work properly
<marcan> follow Apple's instructions to get into DFU mode, then use Revive in the configurator
tomba4032 has quit [Ping timeout: 480 seconds]
<i509vcb> marcan: yep revive went through, thank you for the help
<i509vcb> And nicolas17 as well
<marcan> glad to hear that :)
<i509vcb> now back to what I was trying to do before this whole mess... Actually add a swap partition since I forgot to do that at install time...
<nicolas17> meh use a swap file :P
<i509vcb> Yeah... maybe when I switch to another distro I'll try the swap partition
crabbedhaloablut has joined #asahi
dylanchapell has quit [Read error: Connection reset by peer]
dylanchapell has joined #asahi
possiblemeatball has quit [Quit: Quit]
ciara has quit [Read error: Connection reset by peer]
ciara has joined #asahi
ciara has quit [Remote host closed the connection]
ciara has joined #asahi
nicolas17 has quit [Quit: Konversation terminated!]
pjakobsson has joined #asahi
crabbedhaloablut has quit []
WindowPa- has joined #asahi
WindowPain has quit [Ping timeout: 480 seconds]
LinuxM1 has joined #asahi
WindowPa- has quit [Quit: ZNC 1.8.2 - https://znc.in]
WindowPain has joined #asahi
bisko has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Zopolis4 has joined #asahi
LinuxM1 has quit [Quit: Leaving]
Method_ has joined #asahi
luna has joined #asahi
Method has quit [Ping timeout: 480 seconds]
chadmed has quit [Ping timeout: 480 seconds]
milek7 has quit [Remote host closed the connection]
milek7 has joined #asahi
leitao has joined #asahi
cylm_ has joined #asahi
mcint has quit [Quit: WeeChat 3.0]
luna has left #asahi [#asahi]
Zopolis4 has quit [Quit: Connection closed for inactivity]
Whistler_ has quit []
chadmed has joined #asahi
bisko has joined #asahi
chadmed has quit [Ping timeout: 480 seconds]
polysinne has joined #asahi
Stary has quit [Quit: ZNC - http://znc.in]
Stary has joined #asahi
tomba4032 has joined #asahi
ourdumbfuture has joined #asahi
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ellyq_ has joined #asahi
chadmed has joined #asahi
leitao has joined #asahi
leitao has quit [Remote host closed the connection]
ellyq has quit [Ping timeout: 480 seconds]
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leitao has joined #asahi
polysinne has quit [Read error: Connection reset by peer]
Whistler_ has joined #asahi
ellyq_ has quit [Read error: Connection reset by peer]
Moprius has joined #asahi
Moprius has quit [Quit: bye]
Moprius has joined #asahi
possiblemeatball has joined #asahi
roxfan2 is now known as roxfan
ourdumbfuture has joined #asahi
ten1572377432 has quit [Remote host closed the connection]
ten1572377432 has joined #asahi
Moprius has quit [Quit: bye]
luna has joined #asahi
possiblemeatball has quit [Quit: Quit]
ten1572377432 has quit [Remote host closed the connection]
ten1572377432 has joined #asahi
ten1572377432 has quit [Remote host closed the connection]
ten1572377432 has joined #asahi
Whistler_ has quit []
luna has left #asahi [#asahi]
bcrumb has joined #asahi
<bcrumb> "error: failed retrieving file 'luajit-2.1.0.beta3.r493.g8635cbab-1-aarch64.pkg.tar.xz' from mirror.archlinuxarm.org : The requested URL returned error: 404" ?
bcrumb has quit []
jeisom has joined #asahi
MichaelLong has quit [Remote host closed the connection]
MichaelLong has joined #asahi
leitao has quit [Ping timeout: 480 seconds]
<pounce> hey friends, i wanted to set up asahi as a daily driver on my macbook. However, after I ran the (minimal) installer and booted into Linux, the root partition was using ext4. I usually have btrfs on my root partition, and this is rather hard to change after installation. Is there any way to configure this beforehand?
as400 has quit [Ping timeout: 480 seconds]
<_jannau__> pounce: not easily you would have to recreate the disk image used by the installer. The installer runs on macos and has no tools or fs drivers for linux file systems
<pounce> hm
<_jannau__> however the fedora based images use btrfs for the root partition, due to be released soon
<pounce> i do like arch arm
<pounce> i would normally solve this with a live ISO, but that is not possible with asahi due to boot restrictions, right?
as400 has joined #asahi
as400 has quit [Remote host closed the connection]
<_jannau__> you could do a minimal installation and switch the root partition fs type from the initramfs with rd.break
as400 has joined #asahi
<pounce> hm i guess i could also do just the UEFI env
<pounce> and then boot an archiso from the UEFI boot manager?
possiblemeatball has joined #asahi
ten1572377432 has quit [Remote host closed the connection]
ten1572377432 has joined #asahi
<_jannau__> pounce: you would need an asahi rebuild of archiso
rvalue- has joined #asahi
<pounce> oh right
<pounce> bc it would need asahi kernel
<_jannau__> yes
rvalue has quit [Remote host closed the connection]
<ChaosPrincess> pounce: this might help you: https://man.archlinux.org/man/core/btrfs-progs/btrfs-convert.8.en
<pounce> ChaosPrincess: i've been considering this, but I believe you have to unmount your disk for this to work
<pounce> so you would still need a live ISO of sorts
<ChaosPrincess> Make a ramdisk, copy /usr into it chroot and unmount rootfs
delsol has joined #asahi
<pounce> yeah,,,
<pounce> weh
<ChaosPrincess> I did similar operations over ssh on a server, it's "fun" :P
<pounce> so much work in the middle of an international move :')
<pounce> don't ask why i chose to install asahi now pls
<milek7> copy rootfs files into new partition on any linux system? (eg. on generic arm64 vm)
ten1572377432 has quit [Remote host closed the connection]
ten1572377432 has joined #asahi
lawrence has quit [Remote host closed the connection]
lawrence has joined #asahi
leitao has joined #asahi
leitao has quit []
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leitao has joined #asahi
leitao has quit []
leitao has joined #asahi
ourdumbfuture has joined #asahi
leitao has quit []
leitao has joined #asahi
leitao has quit []
leitao has joined #asahi
leitao has quit []
leitao has joined #asahi
leitao has quit []
leitao has joined #asahi
leitao has quit []
leitao has joined #asahi
leitao has quit []
leitao has joined #asahi
leitao has quit []
leitao has joined #asahi
gabuscus has quit []
leitao has quit []
leitao has joined #asahi
leitao has quit []
leitao has joined #asahi
leitao has quit []
leitao has joined #asahi
leitao has quit []
leitao has joined #asahi
emigre has joined #asahi
leitao has quit []
leitao has joined #asahi
ciara has quit [Read error: Connection reset by peer]
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leitao has quit []
ciara has joined #asahi
leitao has joined #asahi
leitao has quit []
leitao has joined #asahi
leitao has quit []
leitao has joined #asahi
ourdumbfuture has joined #asahi
leitao has quit []
leitao has joined #asahi
leitao has quit []
possiblemeatball has quit [Quit: Quit]
possiblemeatball has joined #asahi
jeisom has quit [Quit: Leaving]
jeisom has joined #asahi
rvalue- has quit [Remote host closed the connection]
rvalue has joined #asahi
jacksonchen666 has joined #asahi
leitao has joined #asahi
lena6 has joined #asahi
leitao has quit [Ping timeout: 480 seconds]
eiln has joined #asahi
eiln has quit [Quit: WeeChat 4.0.3]
delsol has quit [Remote host closed the connection]
<pounce> ok, arch-chroot'd into a tmpfs
Moprius has joined #asahi
leitao has joined #asahi
<pounce> i don't think this is going to work
<pounce> is there anywhere i can download the asahi arch image to put on a USB
emigre has quit [Ping timeout: 480 seconds]
<jannau> pounce: https://cdn.asahilinux.org/os/asahi-base-20230606-1.zip has the minimal image but it probably won't boot from USB
<pounce> hm
leitao has quit [Ping timeout: 480 seconds]
<jannau> have you tried breaking in the initrd after making sure it contents btrfs tools and fs module?
<pounce> jannau: yeah this would be the next step
emigre has joined #asahi
<pounce> but i don't think all of btrfs-progs would be accessible (e.g. btrfs-convert) right?
c10l has quit [Quit: Bye o/]
<pounce> ok i can just use the `BINARIES` rule in mkinitcpio for that
c10l has joined #asahi
<jannau> be careful: "btrfs-convert: error while loading shared libraries: libreiserfscore.so.0: cannot open shared object file: No such file or directory"
<jannau> alarm might have a broken btrfs-convert
<pounce> jannau: i got it to work by installing reiserprogs or something
<jannau> possibly just a broke dependency on reiserfsprogs but I won't test that
<pounce> ++
<jannau> remember to copy it to the initramfs too
<pounce> jannau: yeah that's going to be the hard part
Moprius has quit [Quit: bye]
<pounce> hm, there are issues with block-size and page-size. 4kb block sizes on ext4 are fine, but create issues on btrfs with 16kb page sizes
zalyx0 has quit [Quit: later alligator]
zalyx0 has joined #asahi
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bdju_ has quit [Read error: Connection reset by peer]
jacksonchen666 has quit [Ping timeout: 480 seconds]
<pounce> honestly, maybe i should just copy everything into a tmpfs, and then copy it into the btrfs
gabuscus has joined #asahi
cylm_ has quit [Ping timeout: 480 seconds]
<pounce> uhh
<pounce> is asahi compiled with btrfs support
<pounce> >`mount: unknown filesystem type 'btrfs'`
<mps> pounce: I have alpine linux disk image here https://arvanta.net/alpine/install-alpine-m1/ and short guide how to boot it
<mps> it is outdated somewhat now but probably will boot from usb
<mps> and it have btrfs built in kernel
<mps> (and I think it is time to refresh it)
<pounce> hm, it might not be the easiest to install arch with that
<pounce> but not the hardest either
<mps> oh, I thought you have to just copy FS from somewhere
<pounce> well i got as far as making the filesystem, i just can't mount it
<mps> I remember that this img helped someone to fix his btrfs installation some time ago
leitao has joined #asahi
leitao has quit []
kdb424 has quit [Quit: The Lounge - https://thelounge.chat]
kdb424 has joined #asahi
ourdumbfuture has joined #asahi
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
emigre has quit [Ping timeout: 480 seconds]
ourdumbfuture has joined #asahi
stipa is now known as Guest9096
stipa has joined #asahi
Guest9096 has quit [Ping timeout: 480 seconds]
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ourdumbfuture has joined #asahi
emigre has joined #asahi
rootbeerdan has joined #asahi
possiblemeatball has quit [Quit: Quit]
ten1572377432 has quit [Remote host closed the connection]
ten1572377432 has joined #asahi
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
emigre has quit [Ping timeout: 480 seconds]
thansen has joined #asahi
ten1572377432 has quit [Remote host closed the connection]
ten1572377432 has joined #asahi
ourdumbfuture has joined #asahi