synit: copy eudev rules to /var in stage 2
This commit is contained in:
parent
55d172ef30
commit
51dbe15a13
|
@ -110,6 +110,8 @@ $systemConfig/activate
|
||||||
# Record the boot configuration.
|
# Record the boot configuration.
|
||||||
ln -sfn "$systemConfig" /run/booted-system
|
ln -sfn "$systemConfig" /run/booted-system
|
||||||
|
|
||||||
|
# copy eudev rules over to /var
|
||||||
|
cp -ru @eudev@/var/lib/udev /var/lib/
|
||||||
|
|
||||||
# Run any user-specified commands.
|
# Run any user-specified commands.
|
||||||
@shell@ @postBootCommands@
|
@shell@ @postBootCommands@
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
pkgs.utillinux
|
pkgs.utillinux
|
||||||
pkgs.synit-pid1
|
pkgs.synit-pid1
|
||||||
];
|
];
|
||||||
|
inherit (pkgs) eudev;
|
||||||
postBootCommands = pkgs.writeText "local-cmds" ''
|
postBootCommands = pkgs.writeText "local-cmds" ''
|
||||||
${config.boot.postBootCommands}
|
${config.boot.postBootCommands}
|
||||||
${config.powerManagement.powerUpCommands}
|
${config.powerManagement.powerUpCommands}
|
||||||
|
|
|
@ -102,6 +102,7 @@ with lib;
|
||||||
initialScanScript = pkgs.writeScript "eudev-initial-scan.sh" ''
|
initialScanScript = pkgs.writeScript "eudev-initial-scan.sh" ''
|
||||||
#!${pkgs.runtimeShell}
|
#!${pkgs.runtimeShell}
|
||||||
set -e
|
set -e
|
||||||
|
export PATH=${lib.makeBinPath [ pkgs.eudev ]}
|
||||||
echo "" > /proc/sys/kernel/hotplug
|
echo "" > /proc/sys/kernel/hotplug
|
||||||
udevadm trigger --type=subsystems --action=add
|
udevadm trigger --type=subsystems --action=add
|
||||||
udevadm trigger --type=devices --action=add
|
udevadm trigger --type=devices --action=add
|
||||||
|
|
Loading…
Reference in New Issue