forked from ungleich-public/cdist
Update PXE setup for Debian 8
This commit is contained in:
parent
e79610f23c
commit
16cb3a5ff1
1 changed files with 11 additions and 3 deletions
|
@ -40,7 +40,7 @@ for pkg in \
|
|||
linux-image-amd64 \
|
||||
lsb-release \
|
||||
openssh-server curl \
|
||||
syslinux grub2 \
|
||||
pxelinux syslinux-common grub2 \
|
||||
gdisk util-linux lvm2 mdadm \
|
||||
btrfs-tools e2fsprogs jfsutils reiser4progs xfsprogs; do
|
||||
__package $pkg --state present
|
||||
|
@ -90,7 +90,7 @@ class PreOS(object):
|
|||
self.options = [ "--include=openssh-server",
|
||||
"--arch=%s" % self.arch ]
|
||||
|
||||
self.pxelinux = "/usr/lib/syslinux/pxelinux.0"
|
||||
self.pxelinux = "/usr/lib/PXELINUX/pxelinux.0"
|
||||
self.pxelinux_cfg = """
|
||||
DEFAULT preos
|
||||
LABEL preos
|
||||
|
@ -178,11 +178,18 @@ cp -L "$src" "$real_dst"
|
|||
|
||||
def create_pxelinux(self):
|
||||
dst = os.path.join(self.out_dir, "pxelinux.0")
|
||||
src = "%s/usr/lib/syslinux/pxelinux.0" % self.target_dir
|
||||
src = "%s/usr/lib/PXELINUX/pxelinux.0" % self.target_dir
|
||||
|
||||
log.info("Creating pxelinux.0 ...")
|
||||
shutil.copyfile(src, dst, follow_symlinks=True)
|
||||
|
||||
def create_ldlinux(self):
|
||||
dst = os.path.join(self.out_dir, "ldlinux.c32")
|
||||
src = "%s/usr/lib/syslinux/modules/bios/ldlinux.c32" % self.target_dir
|
||||
|
||||
log.info("Creating ldlinux.c32 ...")
|
||||
shutil.copyfile(src, dst, follow_symlinks=True)
|
||||
|
||||
def create_pxeconfig(self):
|
||||
configdir = os.path.join(self.out_dir, "pxelinux.cfg")
|
||||
configfile = os.path.join(configdir, "default")
|
||||
|
@ -219,6 +226,7 @@ cp -L "$src" "$real_dst"
|
|||
self.create_initramfs()
|
||||
self.create_pxeconfig()
|
||||
self.create_pxelinux()
|
||||
self.create_ldlinux()
|
||||
|
||||
|
||||
def setup_initial_manifest(self, user_initial_manifest, replace_manifest):
|
||||
|
|
Loading…
Reference in a new issue