#
…

2023-08-16

01:03i509vcb has joined #asahi
01:03possiblemeatball has joined #asahi
01:12vlvrd has joined #asahi
01:15marvin24_ has joined #asahi
01:19vlvrd has quit [Quit: Leaving]
01:20marvin24 has quit [Ping timeout: 480 seconds]
01:28i509vcbI *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?
01:28xadammr has joined #asahi
01:29Brainium has quit [Quit: Konversation terminated!]
01:31i509vcbstill in linux for context
01:32i509vcbdid get this ominous "wiping old apfs signature"
01:36chadmedi509vcb: you will need a device with apple configurator unfortunately but you dont need to do a full wipe iirc
01:36chadmedso 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
01:37chadmed(cc marcan because he figured this out... after i did the exact same thing you just did)
01:37i509vcbOk so I guess I get to borrow my mom's laptop for a bit
01:40dylanchapell has quit [Read error: Connection reset by peer]
01:50i509vcbInteresting I can still hit Linux but there is the fun part of holding the power button for more than 10s
01:51tertu2 has joined #asahi
01:54dylanchapell has joined #asahi
01:57tertu has quit [Ping timeout: 480 seconds]
02:00gabuscus has quit []
02:08ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
02:08Dementor has quit [Quit: Ping timeout (120 seconds)]
02:20i509vcbError 21, I guess I have to clean install
02:21ourdumbfuture has joined #asahi
02:25marcani509vcb: there's a known fix for borking that partition
02:25marcantook me a while to figure it out
02:25i509vcbWell I'm open to hear it
02:27marcanboot 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
02:27gabuscus has joined #asahi
02:27marcanit can recover from that state (empty but present and correct recovery container)
02:27i509vcbBut if a problem, I can't enter recoveryOS
02:27marcanwhy not?
02:27marcanthat partition is the system/fallback recoveryOS
02:27i509vcbYou hold the power button for 10s?
02:27i509vcbI can still get to Linux but can't swap back to macOS
02:27marcanthat should get you into paired recoveryOS for whatever OS is your default boot OS right now
02:28marcanmake sure you hold it and don't double tap it or anything like that
02:28marcanwhat happens if you hold the power button for 10s?
02:28i509vcbDoing that
02:29i509vcbHuh I did get something
02:29i509vcbWhy does a double tap not work?
02:29marcanbecause that forces system recoveryOS fallback
02:29marcanwhich is what you wiped
02:30i509vcbFrom there I do what?
02:30i509vcbDiskutil, right, I forgot to read
02:30marcan`diskutil list` to get the state of things, `diskutil eraseVolume apfs RecoveryOSContainer <partition>` to format the partition properly
02:32marcanthen `diskutil list` again to see what you have, `diskutil apfs addVolume <container device> apfs Recovery -role R` to create the Recovery volume
02:32i509vcbusing disk0s6 in my case?
02:32marcanyes presumably
02:32marcanfor <container device> use the synthesized disk (disk2 or whatever shows up after you format it)
02:32marcanthen finally `diskutil apfs deleteVolume <old default volume>` (to delete the other volume than Recovery that the eraseVolume created)
02:33marcanthen 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
02:35marcan(for back to linux just reboot, assuming that's still your default boot OS)
02:37marcanthe 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
02:37Aya_Takahashi has quit [Remote host closed the connection]
02:37marcanbut 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
02:37marcan*recover
02:40Zeroinehi marcan
02:40marcan(for those unaware: where I say "unrecoverable state" I mean without a full wipe. DFU full wipe always works but wipes your data.)
02:40Zeroinehave a great day!
02:44rvalue has joined #asahi
02:45marcanI 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
02:45ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
02:45marcanassuming there's nothing particularly unique about an empty APFS disk image
02:47i509vcbInitial state of disk0:
02:47i509vcb0: GUID_Partiton_scheme
02:47i509vcb1: APFS_ISC
02:47i509vcb2: Container disk3
02:47i509vcb3: Container disk2
02:47i509vcb4: EFI - ASAHI
02:47i509vcb5: Linux Filesystem
02:47i509vcb6: Apple_APFS_Recovery
02:47Z750 has quit [Quit: Ping timeout (120 seconds)]
02:47Z750 has joined #asahi
02:49i509vcbwhere 6 is the partition I messed up
02:49i509vcbI can run eraseVolume disk0s6
02:49i509vcbBut then it refuses to allow the addVolume Recovery
02:49nicolas17marcan: is there anything particularly unique about a functional recoveryOS? does it need to be personalized and blessed by the bootpolicy or something?
02:50marcannicolas17: yes, it's at the very least per-machine-type
02:50marcanand there are big hex IDs involved which I doubt are constant
02:50nicolas17I was wondering if a Linux tool could get the contents off an ipsw and recover it
02:51i509vcb> The given disk is not an apfs container reference
02:51nicolas17but yeah, I guess making an empty one and letting AC2 deal with the rest is better
02:51marcanon paper yes, but it would be reimplementing the whole bootability process
02:51marcanwhich I've avoided doing so far
02:51marcanyou could probably at least reuse the existing bootpolicy and avoid talking to SEP
02:52marcani509vcb: `diskutil list again` and look for the synthesized disk
02:52marcanshould be disk<n>
02:52marcanthat is what addVolume needs
02:52i509vcbAh synthesized
02:53nicolas17marcan: 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
02:55i509vcbHmm a new synthesized disk appeared after the first diskutil command, disk6
02:55i509vcbI'd guess that?
02:55i509vcb5.4GB Physical Store disk0s6
02:56i509vcbOkay that seemed to run
02:57jeisom has quit [Quit: Leaving]
02:58i509vcbDouble tap for me to the startup options
02:58i509vcbThanks marcan, now to fix the type Linux side and not do the same mistake again
02:59jeisom has joined #asahi
03:01nicolas17i509vcb: 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
03:01i509vcbWell I guess I'm not done yet
03:04i509vcbMy device isn't appearing in recovery mode anymore though?
03:07jeisom has quit [Ping timeout: 480 seconds]
03:08i509vcbOk now I got to that
03:08i509vcbHad to release when it said loading startup options
03:22marvin24 has joined #asahi
03:30marvin24_ has quit [Ping timeout: 480 seconds]
03:31i509vcbWhat type did I need to set that partition to in fdisk?
03:31i509vcbAPFS, Apple Silicon recovery?
03:31marcanapple silicon recovery
03:32marcanyou should use DFU mode
03:32marcannot "recovery" mode
03:32marcanI don't know why but the various recovery mode nonsense never seems to work properly
03:32marcanfollow Apple's instructions to get into DFU mode, then use Revive in the configurator
03:33tomba4032 has quit [Ping timeout: 480 seconds]
03:44i509vcbmarcan: yep revive went through, thank you for the help
03:44i509vcbAnd nicolas17 as well
03:51marcanglad to hear that :)
03:53i509vcbnow 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...
04:00nicolas17meh use a swap file :P
04:08i509vcbYeah... maybe when I switch to another distro I'll try the swap partition
04:13crabbedhaloablut has joined #asahi
04:29dylanchapell has quit [Read error: Connection reset by peer]
04:43dylanchapell has joined #asahi
04:50possiblemeatball has quit [Quit: Quit]
05:10ciara has quit [Read error: Connection reset by peer]
05:13ciara has joined #asahi
05:17ciara has quit [Remote host closed the connection]
05:19ciara has joined #asahi
05:39nicolas17 has quit [Quit: Konversation terminated!]
06:48pjakobsson has joined #asahi
06:49crabbedhaloablut has quit []
06:52WindowPa- has joined #asahi
06:56WindowPain has quit [Ping timeout: 480 seconds]
06:56LinuxM1 has joined #asahi
07:05WindowPa- has quit [Quit: ZNC 1.8.2 - https://znc.in]
07:05WindowPain has joined #asahi
07:19bisko has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
07:20Zopolis4 has joined #asahi
07:36LinuxM1 has quit [Quit: Leaving]
07:56Method_ has joined #asahi
07:58luna has joined #asahi
08:00Method has quit [Ping timeout: 480 seconds]
08:04chadmed has quit [Ping timeout: 480 seconds]
08:27milek7 has quit [Remote host closed the connection]
08:30milek7 has joined #asahi
08:30leitao has joined #asahi
08:44cylm_ has joined #asahi
08:44mcint has quit [Quit: WeeChat 3.0]
08:48luna has left #asahi [#asahi]
09:29Zopolis4 has quit [Quit: Connection closed for inactivity]
09:38Whistler_ has quit []
09:57chadmed has joined #asahi
10:09bisko has joined #asahi
10:22chadmed has quit [Ping timeout: 480 seconds]
11:08polysinne has joined #asahi
11:16Stary has quit [Quit: ZNC - http://znc.in]
11:17Stary has joined #asahi
11:28tomba4032 has joined #asahi
11:48ourdumbfuture has joined #asahi
11:52leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:54ellyq_ has joined #asahi
11:55chadmed has joined #asahi
11:57leitao has joined #asahi
11:57leitao has quit [Remote host closed the connection]
11:58ellyq has quit [Ping timeout: 480 seconds]
12:08ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
12:12leitao has joined #asahi
12:13polysinne has quit [Read error: Connection reset by peer]
12:37Whistler_ has joined #asahi
12:52ellyq_ has quit [Read error: Connection reset by peer]
13:12Moprius has joined #asahi
13:27Moprius has quit [Quit: bye]
13:40Moprius has joined #asahi
14:00possiblemeatball has joined #asahi
14:05roxfan2 is now known as roxfan
14:13ourdumbfuture has joined #asahi
14:14ten1572377432 has quit [Remote host closed the connection]
14:14ten1572377432 has joined #asahi
14:22Moprius has quit [Quit: bye]
14:22luna has joined #asahi
14:31possiblemeatball has quit [Quit: Quit]
14:35ten1572377432 has quit [Remote host closed the connection]
14:36ten1572377432 has joined #asahi
14:41ten1572377432 has quit [Remote host closed the connection]
14:41ten1572377432 has joined #asahi
14:46Whistler_ has quit []
14:54luna has left #asahi [#asahi]
14:59bcrumb has joined #asahi
14:59bcrumb"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" ?
15:04bcrumb has quit []
15:06jeisom has joined #asahi
15:13MichaelLong has quit [Remote host closed the connection]
15:14MichaelLong has joined #asahi
15:14leitao has quit [Ping timeout: 480 seconds]
15:32pouncehey 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?
15:37as400 has quit [Ping timeout: 480 seconds]
15:38_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
15:38_jannau__however the fedora based images use btrfs for the root partition, due to be released soon
15:39pouncei do like arch arm
15:39pouncei would normally solve this with a live ISO, but that is not possible with asahi due to boot restrictions, right?
15:39as400 has joined #asahi
15:42as400 has quit [Remote host closed the connection]
15:43_jannau__you could do a minimal installation and switch the root partition fs type from the initramfs with rd.break
15:46as400 has joined #asahi
15:46pouncehm i guess i could also do just the UEFI env
15:47pounceand then boot an archiso from the UEFI boot manager?
15:47possiblemeatball has joined #asahi
16:01ten1572377432 has quit [Remote host closed the connection]
16:01ten1572377432 has joined #asahi
16:03_jannau__pounce: you would need an asahi rebuild of archiso
16:03rvalue- has joined #asahi
16:03pounceoh right
16:03pouncebc it would need asahi kernel
16:04rvalue has quit [Remote host closed the connection]
16:24pounceChaosPrincess: i've been considering this, but I believe you have to unmount your disk for this to work
16:24pounceso you would still need a live ISO of sorts
16:24ChaosPrincessMake a ramdisk, copy /usr into it chroot and unmount rootfs
16:25delsol has joined #asahi
16:26ChaosPrincessI did similar operations over ssh on a server, it's "fun" :P
16:27pounceso much work in the middle of an international move :')
16:27pouncedon't ask why i chose to install asahi now pls
16:34milek7copy rootfs files into new partition on any linux system? (eg. on generic arm64 vm)
17:14ten1572377432 has quit [Remote host closed the connection]
17:14ten1572377432 has joined #asahi
17:18lawrence has quit [Remote host closed the connection]
17:21lawrence has joined #asahi
17:33leitao has joined #asahi
17:35leitao has quit []
17:36ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
17:36leitao has joined #asahi
17:40leitao has quit []
17:41leitao has joined #asahi
17:43ourdumbfuture has joined #asahi
17:44leitao has quit []
17:45leitao has joined #asahi
17:47leitao has quit []
17:48leitao has joined #asahi
17:50leitao has quit []
17:51leitao has joined #asahi
17:53leitao has quit []
17:54leitao has joined #asahi
17:56leitao has quit []
17:57leitao has joined #asahi
17:59leitao has quit []
18:00leitao has joined #asahi
18:03leitao has quit []
18:04leitao has joined #asahi
18:05gabuscus has quit []
18:05leitao has quit []
18:06leitao has joined #asahi
18:08leitao has quit []
18:09leitao has joined #asahi
18:11leitao has quit []
18:12leitao has joined #asahi
18:15leitao has quit []
18:16leitao has joined #asahi
18:16emigre has joined #asahi
18:18leitao has quit []
18:19leitao has joined #asahi
18:19ciara has quit [Read error: Connection reset by peer]
18:19ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
18:21leitao has quit []
18:21ciara has joined #asahi
18:22leitao has joined #asahi
18:24leitao has quit []
18:25leitao has joined #asahi
18:27leitao has quit []
18:28leitao has joined #asahi
18:30ourdumbfuture has joined #asahi
18:30leitao has quit []
18:31leitao has joined #asahi
18:32leitao has quit []
18:33possiblemeatball has quit [Quit: Quit]
18:34possiblemeatball has joined #asahi
18:36jeisom has quit [Quit: Leaving]
18:37jeisom has joined #asahi
18:43rvalue- has quit [Remote host closed the connection]
18:43rvalue has joined #asahi
18:44jacksonchen666 has joined #asahi
18:53leitao has joined #asahi
18:57lena6 has joined #asahi
19:01leitao has quit [Ping timeout: 480 seconds]
19:04eiln has joined #asahi
19:10eiln has quit [Quit: WeeChat 4.0.3]
19:12delsol has quit [Remote host closed the connection]
19:30pounceok, arch-chroot'd into a tmpfs
19:56Moprius has joined #asahi
19:58leitao has joined #asahi
19:59pouncei don't think this is going to work
20:00pounceis there anywhere i can download the asahi arch image to put on a USB
20:04emigre has quit [Ping timeout: 480 seconds]
20:04jannaupounce: https://cdn.asahilinux.org/os/asahi-base-20230606-1.zip has the minimal image but it probably won't boot from USB
20:06leitao has quit [Ping timeout: 480 seconds]
20:08jannauhave you tried breaking in the initrd after making sure it contents btrfs tools and fs module?
20:09pouncejannau: yeah this would be the next step
20:09emigre has joined #asahi
20:09pouncebut i don't think all of btrfs-progs would be accessible (e.g. btrfs-convert) right?
20:12c10l has quit [Quit: Bye o/]
20:19pounceok i can just use the `BINARIES` rule in mkinitcpio for that
20:20c10l has joined #asahi
20:21jannaube careful: "btrfs-convert: error while loading shared libraries: libreiserfscore.so.0: cannot open shared object file: No such file or directory"
20:21jannaualarm might have a broken btrfs-convert
20:22pouncejannau: i got it to work by installing reiserprogs or something
20:22jannaupossibly just a broke dependency on reiserfsprogs but I won't test that
20:25jannauremember to copy it to the initramfs too
20:29pouncejannau: yeah that's going to be the hard part
20:31Moprius has quit [Quit: bye]
21:00pouncehm, 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
21:00zalyx0 has quit [Quit: later alligator]
21:02zalyx0 has joined #asahi
21:03ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
21:07bdju_ has quit [Read error: Connection reset by peer]
21:07jacksonchen666 has quit [Ping timeout: 480 seconds]
21:10pouncehonestly, maybe i should just copy everything into a tmpfs, and then copy it into the btrfs
21:11gabuscus has joined #asahi
21:14cylm_ has quit [Ping timeout: 480 seconds]
21:17pounceis asahi compiled with btrfs support
21:18pounce>`mount: unknown filesystem type 'btrfs'`
21:21mpspounce: I have alpine linux disk image here https://arvanta.net/alpine/install-alpine-m1/ and short guide how to boot it
21:22mpsit is outdated somewhat now but probably will boot from usb
21:22mpsand it have btrfs built in kernel
21:23mps(and I think it is time to refresh it)
21:25pouncehm, it might not be the easiest to install arch with that
21:25pouncebut not the hardest either
21:26mpsoh, I thought you have to just copy FS from somewhere
21:27pouncewell i got as far as making the filesystem, i just can't mount it
21:28mpsI remember that this img helped someone to fix his btrfs installation some time ago
21:31leitao has joined #asahi
21:34leitao has quit []
21:35kdb424 has quit [Quit: The Lounge - https://thelounge.chat]
21:35kdb424 has joined #asahi
21:39ourdumbfuture has joined #asahi
21:50ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
21:56emigre has quit [Ping timeout: 480 seconds]
21:58ourdumbfuture has joined #asahi
22:00stipa is now known as Guest9096
22:00stipa has joined #asahi
22:05Guest9096 has quit [Ping timeout: 480 seconds]
22:34ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
22:37ourdumbfuture has joined #asahi
22:50emigre has joined #asahi
22:59rootbeerdan has joined #asahi
23:07possiblemeatball has quit [Quit: Quit]
23:15ten1572377432 has quit [Remote host closed the connection]
23:15ten1572377432 has joined #asahi
23:37ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
23:37emigre has quit [Ping timeout: 480 seconds]
23:39thansen has joined #asahi
23:44ten1572377432 has quit [Remote host closed the connection]
23:44ten1572377432 has joined #asahi
23:44ourdumbfuture has joined #asahi
…