Skip to content

Commit

Permalink
Remove man pages along with doc (#244)
Browse files Browse the repository at this point in the history
This has the added benefit of eliminating case-sensitivity from our rootfs images, allowing them to be properly unpacked on macOS.
  • Loading branch information
staticfloat authored Jun 12, 2023
1 parent 939120f commit fccb8c0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/build_img/common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,15 @@ function cleanup_rootfs(rootfs; rootfs_info=nothing)
mkdir(apt_lists_dir)
end

# Remove `/usr/share/doc`, as that's not particularly useful
# Remove `/usr/share/{doc,man}`, as that's not particularly useful
if isdir(joinpath(rootfs, "usr", "share", "doc"))
@info("Removing `/usr/share/doc`...")
rm(joinpath(rootfs, "usr", "share", "doc"); recursive=true, force=true)
end
if isdir(joinpath(rootfs, "usr", "share", "man"))
@info("Removing `/usr/share/man`...")
rm(joinpath(rootfs, "usr", "share", "man"); recursive=true, force=true)
end

# Add `juliaci` user and group
@info("Adding 'juliaci' user and group as 1000:1000")
Expand Down

0 comments on commit fccb8c0

Please sign in to comment.