Cobbler With Debian
by Abhijit Navale
Which Debian ISO will work with Cobbler?
DVD1 iso asks for cd rom drive.
mini iso do not matches nignature.
netinstall will try to install from net, as far as I understand.
I just want the same pxe installation I do with Centos.
Which Debian ISO I can choose?
Is there any modification to ISO file involved here?
Last time I merged netboot iso initrd.gz with dvd1 iso initrd and some
other steps.
But I forgot what I did at that time.
--
*Abhijit Sharad Navale*
Senior R & D Engineer
E*2*E Networks Pvt Ltd
Mobile: +91 87 54 18 77 41 / Office: +91-11-3001-8095
abhijit.navale(a)e2enetworks.com / http://www.e2enetworks.com
This e-mail message may contain confidential or legally privileged
information and is intended only for the use of the intended
recipient(s). Any unauthorized disclosure, dissemination, distribution,
copying or the taking of any action in reliance on the information
herein is prohibited. E-mails are not secure and cannot be guaranteed to
be error free as they can be intercepted, amended, or contain viruses.
Anyone who communicates with us by e-mail is deemed to have accepted
these risks.
9 years, 6 months
I've noticed another qurik.
by Michael Tiernan
I don't know if this rises to the level of being a "bug" but it's a
curiosity that I think I'd like to bring up.
I have a profile which defines everything needed about a system. It
includes the definition of the kickstart and it works fine. If I look at
the system's report, I'll see:
Kickstart : <<inherit>>
which is exactly what I wanted. However if I look at the GUI, I'll see
the kickstart for that system as NOT being "<<inherit>>" but as one of
my kickstart files and I can't change it back from the GUI.
I am of the opinion that this is not a desired behavior, I should be
able to leave the kickstart as inherited from the Profile and not
defined. As a matter of fact, this existing method of operation allows
me to change the kickstart when that's not what the profile wants.
I should be able to define a profile "Red Hat 6.3 Webserver" and then
assign that to specific machines and the machine should build accordingly.
If I never use the GUI, it works fine BTW.
Thanks' for everyone's time.
9 years, 6 months
inst.stage2= support
by Orion Poplawski
Often when testing I will specify the inst.stage2= kernel option to tell
Fedora/anaconda where to download the stage2 image. This then would differ
and needs to override both the tree= ks_meta option and the kickstart url option.
I'm wondering what the best way would be to support this (if at all).
Currently koan does this:
# If breed is ubuntu/debian we need to source the install tree
differently
# as preseeds are used instead of kickstarts.
if profile_data["breed"] in ["ubuntu", "debian", "suse"]:
self.get_install_tree_from_profile_data(profile_data)
else:
# find_kickstart source tree in the kickstart file
self.get_install_tree_from_kickstart(profile_data)
I guess the kickstart data is in general better than the profile data as the
kickstart template could conceivably not use the $tree variable at all.
Perhaps add a new function, so something like:
if profile_data["breed"] in ["ubuntu", "debian", "suse"]:
self.get_install_tree_from_profile_data(profile_data)
else:
# find install source tree from kernel options
if not self.get_install_tree_from_kernel_options(profile_data)
# Otherwise find kickstart source tree in the kickstart file
self.get_install_tree_from_kickstart(profile_data)
def get_install_tree_from_kernel_options(self, profile_data):
"""
Split kernel options to obtain the inst.stage2 path. Generate the
install_tree
using the http_server and the tree obtained from the inst.stage2 path
"""
try:
tree = profile_data["kernel_options"].split()
# Ensure we only take the tree in case ks_meta args are passed
# First check for tree= in ks_meta arguments
meta_re = re.compile('inst.stage2=')
tree_found = ''
for entry in tree:
if meta_re.match(entry):
tree_found = entry.split("=")[-1]
break
if tree_found == '':
return False
else:
tree = tree_found
tree_re = re.compile('(http|ftp|nfs):')
# Next check for installation tree on remote server
if tree_re.match(tree):
tree = tree.replace(
"@@http_server@@",
profile_data["http_server"])
profile_data["install_tree"] = tree
else:
# Now take the first parameter as the local path
profile_data["install_tree"] = "http://" + \
profile_data["http_server"] + tree
if self.safe_load(profile_data, "install_tree"):
print("install_tree:", profile_data["install_tree"])
else:
print("warning: kickstart found but no install_tree found")
except:
pass
There's a fair amount of duplication with
get_install_tree_from_profile_data(), so perhaps a helper function is in order.
Thoughts?
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA, Boulder/CoRA Office FAX: 303-415-9702
3380 Mitchell Lane orion(a)nwra.com
Boulder, CO 80301 http://www.nwra.com
9 years, 7 months