chore: enable default networking and make root own erofs files
This commit is contained in:
parent
aa4f69d891
commit
0a6fc3af49
2 changed files with 3 additions and 1 deletions
|
@ -22,7 +22,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
|||
env = {
|
||||
# vfat options won't efi won't find the fs otherwise.
|
||||
SYSTEMD_REPART_MKFS_OPTIONS_VFAT = "-S 512 -c";
|
||||
SYSTEMD_REPART_MKFS_OPTIONS_EROFS = "--all-root";
|
||||
SYSTEMD_REPART_MKFS_OPTIONS_EROFS = "--all-root"; # -zlz4hc,level=12 -Efragments,dedupe,ztailpacking";
|
||||
};
|
||||
|
||||
systemd = patosPkgs.systemd.out;
|
||||
|
|
|
@ -24,6 +24,8 @@ ln -sf ../dbus.socket rootfs/usr/lib/systemd/system/sockets.target.wants/dbus.so
|
|||
ln -sf ../systemd-networkd.service rootfs/usr/lib/systemd/system/sysinit.target.wants/systemd-networkd.service
|
||||
ln -sf ../systemd-resolved.service rootfs/usr/lib/systemd/system/sysinit.target.wants/systemd-resolved.service
|
||||
ln -sf ../systemd-timesyncd.service rootfs/usr/lib/systemd/system/multi-user.target.wants/systemd-timesyncd.service
|
||||
# enable default network config
|
||||
mv rootfs/usr/lib/systemd/network/89-ethernet.network.example rootfs/usr/lib/systemd/network/89-ethernet.network
|
||||
|
||||
# generate a temporary machine id (replace with overlay later)
|
||||
$systemd/usr/bin/systemd-machine-id-setup --root=rootfs/
|
||||
|
|
Loading…
Add table
Reference in a new issue