logear makeWorld

This commit is contained in:
Cat /dev/Nulo 2023-02-09 21:43:54 -03:00
parent bd12d308d0
commit f6e35c356b

View file

@ -125,16 +125,19 @@ export class Alpine {
"https://dl-cdn.alpinelinux.org/alpine/v3.17/community", "https://dl-cdn.alpinelinux.org/alpine/v3.17/community",
].join("\n") ].join("\n")
); );
await execFile("sudo", [ logDebug(
"apk", "makeWorld",
"add", await execFile("sudo", [
"--initdb", "apk",
"--clean-protected", "add",
"--root", "--initdb",
dir, "--clean-protected",
...["alpine-baselayout", "busybox", "libc-utils", "alpine-keys"], "--root",
...(packages || []), dir,
]); ...["alpine-baselayout", "busybox", "libc-utils", "alpine-keys"],
...(packages || []),
])
);
const alpine = new Alpine({ dir }); const alpine = new Alpine({ dir });
await alpine.fstab.write(); await alpine.fstab.write();