patches and low-level development discussion
 help / color / mirror / code / Atom feed
blob 03ae1b4817941557aea3d84cedc38153e2f287a5 1107 bytes (raw)
name: vm/initramfs/Makefile 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
 
# SPDX-License-Identifier: EUPL-1.2+
# SPDX-FileCopyrightText: 2026 Colby Russell <colby@colbyt.com>

.POSIX:

include ../../lib/common.mk

dest = build/initramfs

$(dest): build/local.cpio $(PACKAGES_CPIO)
	cat build/local.cpio $(PACKAGES_CPIO) | gzip -9n > $@

# etc/init isn't included in ETC_FILES, because it gets installed to
# the root.
ETC_FILES = etc/getuuids etc/probe etc/fstab etc/mdev.conf
MOUNTPOINTS = dev mnt/root proc sys tmp

build/local.cpio: $(ETC_FILES) etc/init build/mountpoints
	printf "%s\n" $(ETC_FILES) | \
	    awk '{while (length) { print; sub("/?[^/]*$$", "") }}' | \
	    sort -u | \
	    $(CPIO) -o $(CPIOFLAGS) > $@
	cd etc && echo init | $(CPIO) -o $(CPIOFLAGS) -AF ../$@
	cd build/mountpoints && printf "%s\n" $(MOUNTPOINTS) | \
	    awk '{while (length) { print; sub("/?[^/]*$$", "") }}' | \
	    sort -u | \
	    $(CPIO) -o $(CPIOFLAGS) -AF ../../$@

build/mountpoints:
	rm -rf build/mountpoints
	mkdir -p build/mountpoints
	cd build/mountpoints && mkdir -p $(MOUNTPOINTS)
	find build/mountpoints -mindepth 1 -exec touch -d @0 {} ';'

clean:
	rm -rf build
.PHONY: clean

debug log:

solving 03ae1b4 ...
found 03ae1b4 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/Makefile b/vm/initramfs/Makefile
new file mode 100644
index 0000000..03ae1b4

Checking patch vm/initramfs/Makefile...
Applied patch vm/initramfs/Makefile cleanly.

index at:
100644 03ae1b4817941557aea3d84cedc38153e2f287a5	vm/initramfs/Makefile

(*) 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).