initrdinject: Use full option versions for cpio

Makes it more self documenting IMO
This commit is contained in:
Cole Robinson 2019-04-02 15:02:47 -04:00
parent d5af67d077
commit 309840b953
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@ def perform_initrd_injections(initrd, injections, scratchdir):
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
cwd=tempdir)
cpio_proc = subprocess.Popen(['cpio', '-o', '--null', '-Hnewc', '--quiet'],
cpio_proc = subprocess.Popen(['cpio', '--create', '--null', '--quiet',
'--format=newc'],
stdin=find_proc.stdout,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,