mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 03:31:36 +01:00
bak
This commit is contained in:
@@ -29,12 +29,12 @@ See also:https://github.com/cirosantilli/linux-kernel-module-cheat#ubuntu-guest-
|
||||
'--format', '{{.Names}}',
|
||||
]).decode()
|
||||
if container_name in containers.split():
|
||||
common.run_cmd([
|
||||
self.sh.run_cmd([
|
||||
'docker',
|
||||
'rm',
|
||||
container_name,
|
||||
])
|
||||
common.run_cmd([
|
||||
self.sh.run_cmd([
|
||||
'docker',
|
||||
'create',
|
||||
'--name', container_name,
|
||||
@@ -48,7 +48,7 @@ See also:https://github.com/cirosantilli/linux-kernel-module-cheat#ubuntu-guest-
|
||||
'ubuntu:18.04',
|
||||
'bash',
|
||||
])
|
||||
common.run_cmd([
|
||||
self.sh.run_cmd([
|
||||
'docker',
|
||||
'export',
|
||||
'-o',
|
||||
@@ -60,7 +60,7 @@ See also:https://github.com/cirosantilli/linux-kernel-module-cheat#ubuntu-guest-
|
||||
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
|
||||
common.run_cmd([
|
||||
self.sh.run_cmd([
|
||||
'virt-make-fs',
|
||||
'--format', 'raw',
|
||||
'--size', '+1G',
|
||||
|
||||
Reference in New Issue
Block a user