When I try to use serial console with clonezilla - it doesn't work.
I add 2 options - live-getty and console=ttyS0,115200n8 to kernel parameters
I see boot progress on ttyS0, but after that nobackup/restore processes starting on ttyS0
Last lines on ttyS0:
Starting to prepare Clonezilla live env...
Live media is in /live/image
Updating /etc/ocs/ocs-live.conf based on kernel parameters if found... done!
Configuring keyboard...
Trying to arm the wake on LAN for eth0... eth1... eth2... done!
Found ocs_prerun* parameter in boot parameters...
The order to run: ocs_prerun
**************************
Now run "ocs_prerun": /live/image/addscr.sh...
Finished Clonezilla live env preparing...
PS. restore process started if I change inittab:
-#T0:23:respawn:/bin/login -f user </dev/tty >/dev/tty 2>&1
+T0:23:respawn:/bin/login -f user </dev/ttyS0 >/dev/ttyS0 2>&1
and run telinit q
PS. small bug - please ignore console=tty0 parameter
usually users add something like console=tty0 console=ttyS0,XXXX to kernel parameters to see boot process on both real and serial console
Please tell us which version of Clonezilla live you tried, it's easier for us to reproduce the problem.
Thanks.
Steven.
I am also experiencing this problem. This is still an issue as of 1.2.8-23
For anyone who stumbles across this, this can be hacked around by appending the following to the arguments sent to clonezilla in the pxelinux.cfg file you're using:
ocs_prerun="sed -i -e '/[1-6]:23:/ d' -e '/1:2345:respawn/ d'" ocs_prerun1="sed -i -e s@#T0@T0@g -e s@dev/tty@dev/ttyS0@g /etc/inittab" ocs_prerun2="telinit q"
the first line in my previous comment is missing a critical component, and should look like:
ocs_prerun="sed -i -e '/[1-6]:23:/ d' -e '/1:2345:respawn/ d' /etc/inittab"
I can not reproduce the problem here.
FYI:
The boot parameters I used and working here (for pxelinux/syslinux/isolinux):
label Clonezilla-live
MENU DEFAULT
# MENU HIDE
MENU LABEL Clonezilla Live 1.2.8-46-i486 (Ramdisk)
# MENU PASSWD
KERNEL Clonezilla-live-vmlinuz
APPEND initrd=Clonezilla-live-initrd.img boot=live config noswap nolocales edd=on nomodeset ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_keymap="" ocs_live_batch="no" ocs_lang="" vga=788 nosplash noprompt fetch=tftp://192.168.1.182/Clonezilla-live-filesystem.squashfs ocs_server="192.168.1.182" live-getty console=ttyS1,38400n81
TEXT HELP
Clonezilla Live 1.2.8-46-i486 runs on RAM
ENDTEXT
Steven.