Skip to content

Commit

Permalink
Merge pull request #29 from jsuchome/initrd
Browse files Browse the repository at this point in the history
initrd is now xz archive (patch from Scott Barnum, bnc#908408)
  • Loading branch information
jsuchome committed Jan 28, 2015
2 parents 8fda910 + a909dc1 commit 230de5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/ProductCreator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2354,7 +2354,7 @@ def InsertKeyToInitrd(gpg_key, initrd_file)
)
end

# initrd is a cpio.gz archive
# initrd is a cpio.xz archive

parts = Builtins.splitstring(initrd_file, "/")
if Ops.greater_than(Builtins.size(parts), 1)
Expand All @@ -2367,7 +2367,7 @@ def InsertKeyToInitrd(gpg_key, initrd_file)
Builtins.y2milestone("Uncompressing initrd: %1", initrd_file)
ret = Exec(
Builtins.sformat(
"cd '%1' && gunzip < '%2' > '%2.cpio'",
"cd '%1' && unxz < '%2' > '%2.cpio'",
String.Quote(base),
String.Quote(initrd_file)
)
Expand Down

0 comments on commit 230de5a

Please sign in to comment.