mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 11:41:35 +01:00
build-linux and build-gem5 seem to work
This commit is contained in:
14
build-docker
14
build-docker
@@ -44,7 +44,7 @@ See also:https://github.com/cirosantilli/linux-kernel-module-cheat#ubuntu-guest-
|
||||
'--privileged',
|
||||
'-t',
|
||||
'-w', target_dir,
|
||||
'-v', '{}:{}'.format(common.root_dir, target_dir),
|
||||
'-v', '{}:{}'.format(kwargs['root_dir'], target_dir),
|
||||
'ubuntu:18.04',
|
||||
'bash',
|
||||
])
|
||||
@@ -52,11 +52,11 @@ See also:https://github.com/cirosantilli/linux-kernel-module-cheat#ubuntu-guest-
|
||||
'docker',
|
||||
'export',
|
||||
'-o',
|
||||
common.docker_tar_file,
|
||||
kwargs['docker_tar_file'],
|
||||
container_name,
|
||||
])
|
||||
tar = tarfile.open(common.docker_tar_file)
|
||||
tar.extractall(common.docker_tar_dir)
|
||||
tar = tarfile.open(kwargs['docker_tar_file'])
|
||||
tar.extractall(kwargs['docker_tar_dir'])
|
||||
tar.close()
|
||||
# sudo not required in theory
|
||||
# https://askubuntu.com/questions/1046828/how-to-run-libguestfs-tools-tools-such-as-virt-make-fs-without-sudo
|
||||
@@ -65,13 +65,13 @@ See also:https://github.com/cirosantilli/linux-kernel-module-cheat#ubuntu-guest-
|
||||
'--format', 'raw',
|
||||
'--size', '+1G',
|
||||
'--type', 'ext2',
|
||||
common.docker_tar_dir,
|
||||
common.docker_rootfs_raw_file,
|
||||
kwargs['docker_tar_dir'],
|
||||
kwargs['docker_rootfs_raw_file'],
|
||||
])
|
||||
common.raw_to_qcow2(prebuilt=True)
|
||||
|
||||
def get_build_dir(self, args):
|
||||
return common.docker_build_dir
|
||||
return kwargs['docker_build_dir']
|
||||
|
||||
def get_default_args(self):
|
||||
return {'docker': True}
|
||||
|
||||
Reference in New Issue
Block a user