plougher / squashfs-tools

tools to create and extract Squashfs filesystems
GNU General Public License v2.0
752 stars 193 forks source link

Mksquashfs -mkfs-time, -all-time and -root-time should take a "human writable" string #221

Closed plougher closed 1 year ago

plougher commented 1 year ago

The -mkfs-time, -all-time and -root-time options were originally added to support reproducible builds. As these builds are invariably scripted, the options took an unsigned integer representing the seconds since the epoch (1970-01-01), which is easily handled by a script.

But these options could be useful to other people who are running Mksquashfs from the command line rather than a script. In this case having the options only take an unsigned integer makes them difficult to use from the command line.

This issue will enhance the options to take a "human" writable and readable string, such as "now", "last month", or "jan 19 2023".

plougher commented 1 year ago

Fixed in https://github.com/plougher/squashfs-tools/commit/951a0837450db88fcbcbcd78889315e75b089896 https://github.com/plougher/squashfs-tools/commit/b57bac8799f49ef7e02bc1e7ea0efaedd7aaf6da and https://github.com/plougher/squashfs-tools/commit/274a58ff167d2de17c7041ffd9946433c70c52f4