1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 18:01:16 +02:00

install: show macOS 10.15 message with --daemon

This commit is contained in:
Daiderd Jordan 2020-02-13 12:57:35 +01:00
parent 10202628b9
commit 083bb3bbfc
No known key found for this signature in database
GPG key ID: D02435D05B810C96
2 changed files with 20 additions and 16 deletions

View file

@ -1,8 +1,8 @@
#!/bin/sh
set -e
root_disks() {
diskutil list -plist /
root_disk() {
diskutil info -plist /
}
apfs_volumes_for() {
@ -11,7 +11,7 @@ apfs_volumes_for() {
}
disk_identifier() {
xpath "/plist/dict/key[text()='WholeDisks']/following-sibling::array[1]/string/text()" 2>/dev/null
xpath "/plist/dict/key[text()='ParentWholeDisk']/following-sibling::string[1]/text()" 2>/dev/null
}
volume_get() {
@ -81,7 +81,7 @@ main() {
sudo mkdir /nix
fi
disk=$(root_disks | disk_identifier)
disk=$(root_disk | disk_identifier)
volume=$(find_nix_volume "$disk")
if [ -z "$volume" ]; then
echo "Creating a Nix Store volume..." >&2