jcnelson / vdev

A device-file manager for *nix
GNU General Public License v3.0
101 stars 13 forks source link

mksquashfs syntax error. #31

Closed fbt closed 9 years ago

fbt commented 9 years ago

On my system (Arch Linux), mksquashfs from squashfs-tools throws a syntax error when you do this:

mksquashfs  -force-uid 0 -force-gid 0 "/home/fbt/git/pkg/vdev-git/src/vdev-git/build/lib/vdev/hwdb/hwdb.squashfs.dir" "/home/fbt/git/pkg/vdev-git/src/vdev-git/build/lib/vdev/hwdb/hwdb.squashfs"

It requires the options to go after the arguments, like this:

mksquashfs "/home/fbt/git/pkg/vdev-git/src/vdev-git/build/lib/vdev/hwdb/hwdb.squashfs.dir" "/home/fbt/git/pkg/vdev-git/src/vdev-git/build/lib/vdev/hwdb/hwdb.squashfs" -force-uid 0 -force-gid 0

The syntax is this:

SYNTAX:mksquashfs source1 source2 ...  dest [options] [-e list of exclude dirs/files]

If this is incompatible with other systems, I can just patch this, no big deal.

jcnelson commented 9 years ago

My bad. I committed a fix as of 76da69c85bc41cdca8c3eda978eda25d100084fe. Can you confirm that it works?

fbt commented 9 years ago

Yep, works.