pmcf 2.41.1 → 2.41.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/host-utils.mjs +3 -1
- package/src/host.mjs +3 -1
- package/src/network-interfaces/wlan.mjs +2 -0
- package/types/host.d.mts +1 -0
package/package.json
CHANGED
package/src/host-utils.mjs
CHANGED
|
@@ -27,7 +27,9 @@ export async function generateKnownHosts(hosts, dir) {
|
|
|
27
27
|
|
|
28
28
|
keys.push(`${host.domainName} ${alg} ${key}`);
|
|
29
29
|
|
|
30
|
-
for await (const addr of host.networkAddresses(
|
|
30
|
+
for await (const addr of host.networkAddresses(
|
|
31
|
+
na => na.networkInterface.kind !== "loopback"
|
|
32
|
+
)) {
|
|
31
33
|
keys.push(`${addr.address} ${alg} ${key}`);
|
|
32
34
|
}
|
|
33
35
|
} catch {}
|
package/src/host.mjs
CHANGED
|
@@ -461,7 +461,8 @@ export class Host extends ServiceOwner {
|
|
|
461
461
|
{ base: this.directory, pattern: "*_key" },
|
|
462
462
|
{ destination: "/etc/ssh/", mode: 0o600 }
|
|
463
463
|
),
|
|
464
|
-
new FileContentProvider(dir + "/")
|
|
464
|
+
new FileContentProvider(dir + "/"),
|
|
465
|
+
new FileContentProvider(join(this.directory, "extra") + "/")
|
|
465
466
|
],
|
|
466
467
|
outputs: this.outputs,
|
|
467
468
|
properties: {
|
|
@@ -474,6 +475,7 @@ export class Host extends ServiceOwner {
|
|
|
474
475
|
],
|
|
475
476
|
provides: [...this.provides],
|
|
476
477
|
replaces: [`mf-${this.hostName}`, ...this.replaces],
|
|
478
|
+
requires: [],
|
|
477
479
|
backup: "root/.ssh/known_hosts",
|
|
478
480
|
hooks: await loadHooks(
|
|
479
481
|
{},
|
|
@@ -54,6 +54,8 @@ export class WLANNetworkInterface extends EthernetNetworkInterface {
|
|
|
54
54
|
const d = join(packageData.dir, "var/lib/iwd/");
|
|
55
55
|
await mkdir(d, { recursive: true });
|
|
56
56
|
|
|
57
|
+
packageData.properties.requires.push("iwd", "impala");
|
|
58
|
+
|
|
57
59
|
/*
|
|
58
60
|
writeFile(
|
|
59
61
|
join(d, `${this.network.name}.psk`),
|