I'm having an issue with "dhclient -v eth0" ocs_prerun command. I've been searching for a solution for the past few hours but appear to be stumped. I feel it's something minor I'm doing wrong as this is my first attempt at editing the syslinux.cfg. If I run Clonezilla in default settings it uses eth0, and grabs DHCP just fine. There is no other NIC or WNIC in the pc, and I've tried changing it to eth1 as a possibility.
My syslinux.cfg looks like the following:
boot=live union=overlay config components noswap edd=on nomodeset noeject noprompt ocs_prerun="ocs_prerun="dhclient -v eth0" ocs_prerun1="sleep 5" ocs_prerun2="mount -t cifs //SERVER/images /home/patimag -o user=NAME,domain=MYDOMAIN,password=PASSWORD ocs_prerun3="sleep 5" ocs_live_run=“ocs-sr -g auto -e1 auto -e2 -c -r -icds -j2 -k1 -scr -p reboot restored disk ask_user sda“ ocs_live_extra_param=““ keyboard-layouts=NONE ocs_live_batch="no" locales=en_US.UTF-8 vga=788 ip= nosplash
If you have any suggestions or possible references I can glance through, it's very appreciated.
Thanks,
Trevor
Last edit: Oomps 2016-05-11
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
So if you run:
/sbin/ifconfig -a
or
cat /proc/net/dev
What's the network device shown on the screen?
BTW, what's the error message when you run "dhclient -v eth0" manually in the command line on Clonezilla live environment?
Steven
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you have copied the cfg from an older version, that code will not work. After extensive testing (almost a whole day, really), adding net.ifnames=0 at the end of the line will allow dhclient to properly configure the connection.
This is what I'm using right now, after the ocs_live_run parameters:
Yes, the boot parameters change very often, especially from the Linux kernel. Therefore it's better to use the file isolinux.cfg or syslinux.cfg from Clonezilla live as a template, then add what you need.
Steven
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm having an issue with "dhclient -v eth0" ocs_prerun command. I've been searching for a solution for the past few hours but appear to be stumped. I feel it's something minor I'm doing wrong as this is my first attempt at editing the syslinux.cfg. If I run Clonezilla in default settings it uses eth0, and grabs DHCP just fine. There is no other NIC or WNIC in the pc, and I've tried changing it to eth1 as a possibility.
My syslinux.cfg looks like the following:
boot=live union=overlay config components noswap edd=on nomodeset noeject noprompt ocs_prerun="ocs_prerun="dhclient -v eth0" ocs_prerun1="sleep 5" ocs_prerun2="mount -t cifs //SERVER/images /home/patimag -o user=NAME,domain=MYDOMAIN,password=PASSWORD ocs_prerun3="sleep 5" ocs_live_run=“ocs-sr -g auto -e1 auto -e2 -c -r -icds -j2 -k1 -scr -p reboot restored disk ask_user sda“ ocs_live_extra_param=““ keyboard-layouts=NONE ocs_live_batch="no" locales=en_US.UTF-8 vga=788 ip= nosplash
If you have any suggestions or possible references I can glance through, it's very appreciated.
Thanks,
Trevor
Last edit: Oomps 2016-05-11
Bump?
So if you run:
/sbin/ifconfig -a
or
cat /proc/net/dev
What's the network device shown on the screen?
BTW, what's the error message when you run "dhclient -v eth0" manually in the command line on Clonezilla live environment?
Steven
If you have copied the cfg from an older version, that code will not work. After extensive testing (almost a whole day, really), adding net.ifnames=0 at the end of the line will allow dhclient to properly configure the connection.
This is what I'm using right now, after the ocs_live_run parameters:
ocs_live_extra_param="" ocs_live_batch=no vga=788 toram=filesystem.squashfs ip= net.ifnames=0 nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
For future reference, it might be a good idea to use an untouched config as a base before making any modifications
Yes, the boot parameters change very often, especially from the Linux kernel. Therefore it's better to use the file isolinux.cfg or syslinux.cfg from Clonezilla live as a template, then add what you need.
Steven