Instead of running directly NM with --debug, create a drop-in in
nm-config.sh. This will make sure, that we can get the debug output
regardless the way how NM will be started.
echo rd.neednet >> /etc/cmdline.d/35-neednet.conf
fi
+if getargbool 0 rd.debug -d -y rdinitdebug -d -y rdnetdebug; then
+ mkdir -m 0755 -p /run/NetworkManager/conf.d
+ (
+ echo '[logging]'
+ echo 'level=TRACE'
+ ) > /run/NetworkManager/conf.d/initrd-logging.conf
+fi
+
nm_generate_connections
/etc/NetworkManager/system-connections/* \
/etc/sysconfig/network-scripts/ifcfg-*; do
[ -f "$i" ] || continue
- if getargbool 0 rd.debug -d -y rdinitdebug -d -y rdnetdebug; then
- /usr/sbin/NetworkManager --configure-and-quit=initrd --debug --log-level=trace
- else
- /usr/sbin/NetworkManager --configure-and-quit=initrd --no-daemon
- fi
+ /usr/sbin/NetworkManager --configure-and-quit=initrd --no-daemon
if [ -s /run/NetworkManager/initrd/hostname ]; then
cat /run/NetworkManager/initrd/hostname > /proc/sys/kernel/hostname