Symlink resolv.conf and machine-id instead of mounting
Works fine after all. Let's avoid mount calls to boot faster.
This commit is contained in:
parent
83db4d6074
commit
bd6307ded5
1 changed files with 2 additions and 4 deletions
|
|
@ -38,8 +38,8 @@ in {
|
|||
services.userborn.enable = false;
|
||||
services.udev.enable = lib.mkDefault true;
|
||||
services.udev.packages = lib.mkDefault [];
|
||||
environment.etc."resolv.conf".text = "# to be overridden with mount";
|
||||
environment.etc."machine-id".text = "# to be overridden with mount";
|
||||
environment.etc."resolv.conf".source = "/run/resolv.conf";
|
||||
environment.etc."machine-id".source = "/run/machine-id";
|
||||
environment.etc."systemd/system".source = lib.mkForce (utils.systemdUtils.lib.generateUnits {
|
||||
type = "system";
|
||||
units = config.systemd.units;
|
||||
|
|
@ -97,8 +97,6 @@ in {
|
|||
PATH=$MICROVM_CLOSURE/sw/bin
|
||||
cp /etc/resolv.conf /run/
|
||||
$MICROVM_CLOSURE/activate || true
|
||||
mount --bind /run/resolv.conf /etc/resolv.conf
|
||||
mount --bind /run/machine-id /etc/machine-id
|
||||
chown 1337:1337 /run
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue