2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 01:22:00 +00:00

Implement initramfs customization for debian build

The initramfstools are extended
to naturally create the materials needed to do diskless.
This commit is contained in:
Jarrod Johnson 2021-11-16 11:33:58 -05:00
parent c11da229b0
commit bd9c261534
2 changed files with 10 additions and 0 deletions

View File

@ -526,6 +526,12 @@ class DebHandler(OsHandler):
self.targpath = targpath
def prep_root_premount(self, args):
mkdirp(os.path.join(self.targpath, 'etc'))
mydir = get_mydir(self.oscategory)
srcdir = os.path.join(mydir, 'initramfs-tools')
targdir = os.path.join(self.targpath, 'etc/initramfs-tools')
shutil.copytree(srcdir, targdir)
os.chmod(0o755, os.path.join(targdir, 'hooks/confluent'))
cmd = ['debootstrap', '--include={0}'.format(','.join(self.includepkgs)), self.codename, self.targpath]
subprocess.check_call(cmd)

View File

@ -0,0 +1,4 @@
MODULES=list
COMPRESS=xz
FRAMEBUFFER=n
CONFLUENTDISKLESS=y