[cobbler] Cobbler 2.4.0, Ubuntu 12.04.1 64bit server == not using local repo?

Zack Perry zack.perry at sbcglobal.net
Tue Nov 13 04:39:39 UTC 2012


Well, again a no go. 

The following is a part of the output of cobbler system getks --name=nb1:

[...]
# This command is run just before the install finishes, but when there is
# still a usable /target directory. You can chroot to /target and use it
# directly, or use the apt-install and in-target commands to easily install
# packages and run commands in the target system.
# d-i preseed/late_command string [command]
d-i preseed/late_command string chroot /target sh -c ' \
\
mkdir -p `dirname /etc/hosts.new`; wget -nv http://192.168.1.3/cblr/svc/op/template/system/nb1/path/_etc_hosts.new --output-document=/etc/hosts.new; chmod 644 /etc/hosts.new; \
mkdir -p `dirname /etc/hostname.new`; wget -nv http://192.168.1.3/cblr/svc/op/template/system/nb1/path/_etc_hostname.new --output-document=/etc/hostname.new; chmod 644 /etc/hostname.new; \
mkdir -p `dirname /etc/network/interfaces.new`; wget -nv http://192.168.1.3/cblr/svc/op/template/system/nb1/path/_etc_network_interfaces.new --output-document=/etc/network/interfaces.new; chmod 644 /etc/network/interfaces.new; \
/tmp/some_shell_script.sh; \
'; \

On the test cobbler server (a netbook running SL 6.3 64bit):

[root at cobbler cobbler]# pwd
/srv/cobbler
[root at cobbler cobbler]# ls -l
total 12
-rw-r--r-- 1 root root  10 Nov 12 20:09 ub_hostname
-rw-r--r-- 1 root root 311 Nov 12 19:09 ub_hosts
-rw-r--r-- 1 root root 541 Nov 12 19:09 ub_static_interfaces

And, cobbler system report --name=nb1 shows that the Template Files attribute has been set:

[...]
Template Files                 : {'/srv/cobbler/ub_static_interfaces': '/etc/network/interfaces.new', '/srv/cobbler/ub_hostname': '/etc/hostname.new', '/srv/cobbler/ub_hosts': '/etc/hosts.new'}
[...]

But, the test netbook just came up, and in its /etc, I didn't see hosts.new, hostname.new. In /etc/network, I didn't see interfaces.new either :-(

Will try to use the post_run_deb to run a script and see.  

Regards,

-- Zack


More information about the cobbler mailing list