Skip to content

Instantly share code, notes, and snippets.

@sleepy-monax
Created March 19, 2022 11:47
Show Gist options
  • Save sleepy-monax/dd3b85a2e7e886637f50c3245ef7c7bb to your computer and use it in GitHub Desktop.
Save sleepy-monax/dd3b85a2e7e886637f50c3245ef7c7bb to your computer and use it in GitHub Desktop.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 967 100 967 0 0 216 0 0:00:04 0:00:04 --:--:-- 216
Bootstrapping installer:
Checking version...
Version: v0.3.4
Downloading...
Extracting...
Initializing...
The installer needs to run as root.
Please enter your sudo password if prompted.
Password:
Welcome to the Asahi Linux installer!
This installer is in an alpha state, and may not work for everyone.
It is intended for developers and early adopters who are comfortable
debugging issues or providing detailed bug reports.
Please make sure you are familiar with our documentation at:
https://alx.sh/w
Press enter to continue.
By default, this installer will hide certain advanced options that
are only useful for developers. You can enable expert mode to show them.
» Enable expert mode? (y/N):
Collecting system information...
Product name: MacBook Air (M1, 2020)
SoC: Apple M1
Device class: j313ap
Product type: MacBookAir10,1
Board ID: 0x26
Chip ID: 0x8103
System firmware: iBoot-7459.101.2
Boot UUID: 48C7A20F-6951-4353-A90B-25BA3DEA1F70
Boot VGID: 48C7A20F-6951-4353-A90B-25BA3DEA1F70
Default boot VGID: 48C7A20F-6951-4353-A90B-25BA3DEA1F70
Boot mode: macOS
OS version: 12.3 (21E230)
System rOS version: 12.3 (21E230)
No Fallback rOS
Login user: nicolasvanbossuyt
Collecting partition information...
System disk: disk0
Collecting OS information...
Partitions in system disk (disk0):
1: APFS [Macintosh HD] (245.11 GB, 6 volumes)
OS: [B*] [Macintosh HD] macOS v12.3 [disk3s1, 48C7A20F-6951-4353-A90B-25BA3DEA1F70]
2: APFS (System Recovery) (5.37 GB, 2 volumes)
OS: [ ] recoveryOS v12.3 [Primary recoveryOS]
[B ] = Booted OS, [R ] = Booted recovery, [? ] = Unknown
[ *] = Default boot volume
Using OS 'Macintosh HD' (disk3s1) for machine authentication.
Choose what to do:
r: Resize an existing partition to make space for a new OS
q: Quit without doing anything
» Action (r):
We're going to resize this partition:
APFS [Macintosh HD] (245.11 GB, 6 volumes)
Total size: 245.11 GB
Free space: 53.45 GB
Minimum free space: 38.00 GB
Minimum total size: 229.66 GB (93.70%)
Enter the new size for your existing partition:
You can enter a size such as '1GB', a fraction such as '50%',
or the word 'min' for the smallest allowable size.
Examples:
30% - 30% to macOS, 70% to the new OS
80GB - 80GB to macOS, the rest to your new OS
min - Shrink macOS as much as (safely) possible
» New size (min):
Resizing will free up 15.45 GB of space.
» Continue? (y/N): y
Started APFS operation
Aligning shrink delta to 15.448.080.384 bytes and targeting a new physical store size of 229.659.115.520 bytes
Determined the minimum size for the targeted physical store of this APFS Container to be 196.444.422.144 bytes
Resizing APFS Container designated by APFS Container Reference disk3
The specific APFS Physical Store being resized is disk0s2
Verifying storage system
Using live mode
Performing fsck_apfs -n -x -l /dev/disk0s2
Checking the container superblock
Checking the space manager
Checking the space manager free queue trees
Checking the object map
Checking the encryption key structures
Checking volume /dev/rdisk3s1
Checking the APFS volume superblock
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking snapshot 1 of 1 (com.apple.os.update-2289385E1A6FCCF05D444673FB1FEB06DDCF82A4C723EAD53AF1F3E08872CE0F)
Checking the fsroot tree
Checking the file extent tree
Checking the extent ref tree
Verifying volume object map space
The volume /dev/rdisk3s1 appears to be OK
Checking volume /dev/rdisk3s2
Checking the APFS volume superblock
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking the fsroot tree
Checking the extent ref tree
Verifying volume object map space
The volume /dev/rdisk3s2 appears to be OK
Checking volume /dev/rdisk3s3
Checking the APFS volume superblock
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking the fsroot tree
Checking the extent ref tree
Verifying volume object map space
The volume /dev/rdisk3s3 appears to be OK
Checking volume /dev/rdisk3s4
Checking the APFS volume superblock
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking the fsroot tree
Checking the extent ref tree
Verifying volume object map space
The volume /dev/rdisk3s4 appears to be OK
Checking volume /dev/rdisk3s5
Checking the APFS volume superblock
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking the document ID tree
Checking the fsroot tree
Checking the extent ref tree
Checking the file key rolling tree
Verifying volume object map space
The volume /dev/rdisk3s5 appears to be OK
Checking volume /dev/rdisk3s6
Checking the APFS volume superblock
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking the fsroot tree
Checking the extent ref tree
Verifying volume object map space
The volume /dev/rdisk3s6 appears to be OK
Verifying allocated space
The container /dev/disk0s2 appears to be OK
Storage system check exit code is 0
Shrinking APFS Physical Store disk0s2 from 245.107.195.904 to 229.659.115.520 bytes
Shrinking APFS data structures
Shrinking partition
Modifying partition map
Finished APFS operation
Resize complete. Press enter to continue.
Collecting partition information...
System disk: disk0
Collecting OS information...
Partitions in system disk (disk0):
1: APFS [Macintosh HD] (229.66 GB, 6 volumes)
OS: [B*] [Macintosh HD] macOS v12.3 [disk3s1, 48C7A20F-6951-4353-A90B-25BA3DEA1F70]
2: (free space: 15.45 GB)
3: APFS (System Recovery) (5.37 GB, 2 volumes)
OS: [ ] recoveryOS v12.3 [Primary recoveryOS]
[B ] = Booted OS, [R ] = Booted recovery, [? ] = Unknown
[ *] = Default boot volume
Using OS 'Macintosh HD' (disk3s1) for machine authentication.
Choose what to do:
f: Install an OS into free space
q: Quit without doing anything
» Action (f):
Choose an OS to install:
1: Asahi Linux Desktop
2: Asahi Linux Minimal (Arch Linux ARM)
3: UEFI environment only (m1n1 + U-Boot + ESP)
» OS: 2
Downloading OS package info...
.
Minimum required space for this OS: 8.00 GB
Available free space: 15.45 GB
How much space should be allocated to the new OS?
You can enter a size such as '1GB', a fraction such as '50%',
the word 'min' for the smallest allowable size, or
the word 'max' to use all available space.
» New OS size (max):
The new OS will be allocated 15.45 GB of space,
leaving 458.75 KB of free space.
Enter a name for your OS
» OS name (Asahi Linux):
Using macOS 12.3 for OS firmware
Downloading macOS OS package info...
.
Creating new stub macOS named Asahi Linux
Installing stub macOS into disk0s5 (Asahi Linux)
Preparing target volumes...
Checking volumes...
Beginning stub OS install...
++
Setting up System volume...
Setting up Data volume...
Setting up Preboot volume...
+++++++++
Setting up Recovery volume...
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Wrapping up...
Stub OS installation complete.
Adding partition EFI (500.17 MB)...
Formatting as FAT...
Adding partition Root (14.95 GB)...
Failed to run process: diskutil quiet addPartition disk0s4 %Linux% %noformat% 14947450880
Output: b'The new partition to be added will be of a human-readable content type of Linux\nThe new partition will be added following disk0s4\n'
root : ERROR Process execution failed
Traceback (most recent call last):
File "/private/tmp/asahi-install/main.py", line 802, in <module>
InstallerMain().main()
File "/private/tmp/asahi-install/main.py", line 654, in main
while self.main_loop():
File "/private/tmp/asahi-install/main.py", line 770, in main_loop
return self.action_install_into_free(parts_free)
File "/private/tmp/asahi-install/main.py", line 286, in action_install_into_free
self.do_install(os_size)
File "/private/tmp/asahi-install/main.py", line 295, in do_install
self.osins.partition_disk(self.part.name, total_size)
File "/private/tmp/asahi-install/osinstall.py", line 79, in partition_disk
info = self.dutil.addPartition(prev, f"%{ptype}%", "%noformat%", size)
File "/private/tmp/asahi-install/diskutil.py", line 166, in addPartition
self.action("quiet", "addPartition", after, fs, label, size, verbose=True)
File "/private/tmp/asahi-install/diskutil.py", line 33, in action
subprocess.run(["diskutil"] + list(args), check=True,
File "/private/tmp/asahi-install/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['diskutil', 'quiet', 'addPartition', 'disk0s4', '%Linux%', '%noformat%', '14947450880']' returned non-zero exit status 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment