redirect pl_sysinit and pl_boot to /dev/console
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Sat, 7 Mar 2015 14:54:09 +0000 (15:54 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Sat, 7 Mar 2015 14:54:09 +0000 (15:54 +0100)
initscripts/pl_netinit
initscripts/pl_sysinit
systemd/pl_boot.service

index 16dc267..5e288c2 100755 (executable)
@@ -305,4 +305,3 @@ echo $(date "+%H:%M:%S") " pl_netinit: attempting to start networking"
 /sbin/ifconfig $ETH_DEVICE > $IFCONFIG_OUTPUT
 
 echo $(date "+%H:%M:%S") " pl_netinit: network online"
 /sbin/ifconfig $ETH_DEVICE > $IFCONFIG_OUTPUT
 
 echo $(date "+%H:%M:%S") " pl_netinit: network online"
-
index 487964f..8b3d421 100755 (executable)
@@ -2,10 +2,6 @@
 
 . /etc/init.d/pl_functions
 
 
 . /etc/init.d/pl_functions
 
-echo pl_sysinit on console > /dev/console
-
-echo pl_sysinit on ttyS0 > /dev/ttyS0
-
 echo ""
 echo "PlanetLab BootCD - distro @PLDISTRO@ based on @FCDISTRO@"
 
 echo ""
 echo "PlanetLab BootCD - distro @PLDISTRO@ based on @FCDISTRO@"
 
index b751075..8fd36ac 100644 (file)
@@ -3,7 +3,9 @@ Description=pl_boot service
 Wants=network-online.target
 After=network.target
 
 Wants=network-online.target
 After=network.target
 
+# in debug mode we fork bash -x so that we can get a grip on
+# what exactly is going on in here
 [Service]
 [Service]
-ExecStart=/etc/init.d/pl_sysinit
-ExecStart=/etc/init.d/pl_boot
+ExecStart=/bin/bash -x /etc/init.d/pl_sysinit > /dev/console
+ExecStart=/bin/bash -x /etc/init.d/pl_boot > /dev/console
 Type=oneshot
 Type=oneshot