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:
parent
c11da229b0
commit
bd9c261534
@ -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)
|
||||
|
||||
|
4
imgutil/ubuntu/initramfs-tools/conf.d/confluent.conf
Normal file
4
imgutil/ubuntu/initramfs-tools/conf.d/confluent.conf
Normal file
@ -0,0 +1,4 @@
|
||||
MODULES=list
|
||||
COMPRESS=xz
|
||||
FRAMEBUFFER=n
|
||||
CONFLUENTDISKLESS=y
|
Loading…
Reference in New Issue
Block a user