Skip to content

Commit

Permalink
creator: Change rootfs description to match cmdline argument
Browse files Browse the repository at this point in the history
This changes the log entry from squashfs+ext4/erofs+ext4 to
squashfs-ext4/erofs-ext4 which matches the cmdline argument passed to
--rootfs-type, making the naming of it more consistent.
  • Loading branch information
bcl committed Jul 22, 2024
1 parent 195b2b2 commit 831b5bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pylorax/creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,15 +227,15 @@ def make_runtime(opts, mount_dir, work_dir, size=None):
compression=compression, compressargs=compressargs)
elif opts.rootfs_type == "squashfs-ext4":
compression, compressargs = squashfs_args(opts)
log.info("Creating a squashfs+ext4 runtime")
log.info("Creating a squashfs-ext4 runtime")
return rb.create_ext4_runtime(joinpaths(work_dir, RUNTIME), size=size,
compression=compression, compressargs=compressargs)
elif opts.rootfs_type == "erofs":
log.info("Creating a erofs only runtime")
return rb.create_erofs_runtime(joinpaths(work_dir, RUNTIME), size=size,
compression="lzma")
elif opts.rootfs_type == "erofs-ext4":
log.info("Creating a erofs+ext4 runtime")
log.info("Creating a erofs-ext4 runtime")
return rb.create_erofs_ext4_runtime(joinpaths(work_dir, RUNTIME), size=size,
compression="lzma")
else:
Expand Down

0 comments on commit 831b5bf

Please sign in to comment.