1
0
Fork 0
mirror of https://github.com/pygos/pkg-utils.git synced 2024-11-22 04:49:46 +01:00
Commit graph

20 commits

Author SHA1 Message Date
858779e42c Add pkg2sqfs utility stub
The goal is to transform a package file to a squashfs image. The mksquashfs
utility is a PITA with all kinds of idiotic not-thought-through corner
cases (e.g. the way "pseudo file definitions" have been tacked on, the
inabillity to set UID/GID for / *AND* have files not owned by root, the
way xattrs are handled, .....).

It would be preferable to fix mksquashfs itself, but the source code itself
is a horrid, unmaintained garbage pile. Its easier to write a small utility
instead that can turn a pkg file into a squashfs image in a way that
propperly treats file permissions and ownership, and is deterministic
(i.e. reproducable).

The utility currently generates an uncompressed squashfs image that
unsquashfs can unpack, but the kernel refuses the mount. The exact
problem still needs to be determined.

Furthermore, compression has to be implemented and some cleanup shoul
be done.

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-04-17 01:33:57 +02:00
d71366bbdd Distribute LICENSE and README.md with source packages
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-03-09 13:52:22 +01:00
deb7bb0d4e Cleanup automakefile structure
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-02-04 15:51:55 +01:00
6a80140c59 Move abstract file list handling code to seperate utility library
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-02-04 15:39:43 +01:00
4d8b8f52d5 Split utility code up into translation-unit per function
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-02-04 15:29:16 +01:00
16f3e4d97c Move utility source code to libuitil.a
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-02-04 15:26:31 +01:00
c23a2c8c33 Add listing modes to install command
Allow the install command to either list the packages it wants to install,
or to list the files it would install.

Optionally allow the command to ignore dependencies.

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-02-03 15:02:37 +01:00
26a7d3f3e7 Add install command
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-02-03 15:02:37 +01:00
a32a4cb149 Cleanup: unify input file processing code
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-01-31 22:15:41 +01:00
6fc871b3ff Move input file processor to main code
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-01-31 17:56:29 +01:00
417fa5b907 Cleanup: remove unpack.h, eliminate subdirectory
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-01-30 13:48:58 +01:00
f62bab2629 Move pkg unpack functionality out of unpack command
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-01-30 13:26:05 +01:00
35fabedb49 Move package unpacking functionality to generic pkg_unpack function
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-01-30 13:02:06 +01:00
be9bfed9b0 Add header for high-level package I/O functions
Mov file list from package function into seperate module, move declaration
into new high-level header.

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-01-30 11:34:23 +01:00
e3740ba387 Move mkdir_p helper function to main code
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-01-29 22:03:33 +01:00
09a336507d Add flags to dump command to dump header data vs file list
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-01-29 00:14:06 +01:00
aab510aa98 Add package header with dependency information
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-01-28 20:01:36 +01:00
David Oberhollenzer
47e237688b pack cmd: seperate file line reader from file list parser
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2019-01-27 16:46:44 +01:00
David Oberhollenzer
53194aa2ac Add lzma compressor
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2019-01-27 00:43:05 +01:00
David Oberhollenzer
6ec11b532e Initial commit
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2019-01-26 23:19:21 +01:00