Use BusyBox in the initrd
Using BusyBox instead of Bash plus a bunch of other tools gives us a much more feature-full, yet smaller initrd. In particular, BusyBox contains networking commands such as ip and a DHCP client, useful for NFS boots. It's also much more convenient for rescue situations because the shell has builtin readline support and there are many more tools (including vi).
This commit is contained in:
@@ -252,10 +252,6 @@ in
|
||||
''
|
||||
# We need mke2fs in the initrd.
|
||||
cp ${pkgs.e2fsprogs}/sbin/mke2fs $out/bin
|
||||
|
||||
# And `ip' (which needs libresolv.so).
|
||||
cp ${pkgs.iproute}/sbin/ip $out/bin
|
||||
cp ${pkgs.glibc}/lib/libresolv.so.* $out/lib
|
||||
'';
|
||||
|
||||
boot.initrd.postDeviceCommands =
|
||||
|
||||
Reference in New Issue
Block a user