patches and low-level development discussion
 help / color / mirror / code / Atom feed
blob 62f893581ba83ec87a4ecad7bf87556768b4ae78 499 bytes (raw)
name: vm/initramfs/etc/getuuids 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
 
#!/bin/awk -f
# SPDX-License-Identifier: EUPL-1.2+
# SPDX-FileCopyrightText: 2021, 2023 Alyssa Ross <hi@alyssa.is>

function to_uuid(hex) {
    return substr(hex, 1, 8) "-" substr(hex, 9, 4) "-" substr(hex, 13, 4) "-" \
        substr(hex, 17, 4) "-" substr(hex, 21)
}

BEGIN {
    if (length(ENVIRON["roothash"]) != 64) {
	system("echo 'roothash invalid or missing' >&2")
	exit 1
    }

    print to_uuid(substr(ENVIRON["roothash"], 1, 32))
    print to_uuid(substr(ENVIRON["roothash"], 33, 32))
}

debug log:

solving 62f8935 ...
found 62f8935 in https://inbox.spectrum-os.org/spectrum-devel/20260625202013.1417254-3-colby@colbyt.com/

applying [1/1] https://inbox.spectrum-os.org/spectrum-devel/20260625202013.1417254-3-colby@colbyt.com/
diff --git a/vm/initramfs/etc/getuuids b/vm/initramfs/etc/getuuids
new file mode 100755
index 0000000..62f8935

Checking patch vm/initramfs/etc/getuuids...
Applied patch vm/initramfs/etc/getuuids cleanly.

index at:
100755 62f893581ba83ec87a4ecad7bf87556768b4ae78	vm/initramfs/etc/getuuids

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/crosvm
	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/nixpkgs
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock
	https://spectrum-os.org/git/www

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).