Closed markoceri closed 6 months ago
Great, I think it's a nice idea!
Il mer 13 mar 2024, 00:38 Marco Mancino @.***> ha scritto:
I had the need to exclude some files during the creation of the LUKS crypted copy.
With this feature is possible to choose which files are to be filtered from the crypted copy by using the template file exclude.list.cryptedclone inside the directory /etc/penguins-eggs.d/exclude.list.d/.
The cryptedclone exclusion can be invoked in the same way as other exclusions, using the filters flag of the command produce.
sudo eggs produce --filters=cryptedclone --cryptedclone
Keep in mind that the paths specified in the exclude.list.cryptedclone file are relative to each user's home directory.
Under the hood the command eggs produce invokes the command eggs syncto to create the LUKS file. I added to this command a new flag -e or --exclude that enable the cryptedclone exclusion.
sudo eggs syncto -e
I also took the opportunity to fix some small formatting issues and variable names, I hope I'm not considered too picky 😃
You can view, comment on, or merge this pull request online at:
https://github.com/pieroproietti/penguins-eggs/pull/344 Commit Summary
- 045e6d2 https://github.com/pieroproietti/penguins-eggs/pull/344/commits/045e6d2e49fe2056f6300c78d877b40c43064bca feat: added ability to exclude files in LUKS creation
File Changes
(7 files https://github.com/pieroproietti/penguins-eggs/pull/344/files)
- A conf/exclude.list.cryptedclone https://github.com/pieroproietti/penguins-eggs/pull/344/files#diff-7e436e12ff761cf9929419e66314b12e0e51d6d7a5c73113d56b32b9fa467dff (6)
- M conf/exclude.list.custom https://github.com/pieroproietti/penguins-eggs/pull/344/files#diff-2ecf3cfbcef5895d0f97954904667623627a6e7c421b86986d812e704073d67b (2)
- M src/classes/ovary.ts https://github.com/pieroproietti/penguins-eggs/pull/344/files#diff-73e053bead79a08dbe5d3cfdebe1b9b5d3240617ee748a141a605cfd3118acd5 (72)
- M src/classes/pacman.ts https://github.com/pieroproietti/penguins-eggs/pull/344/files#diff-de854a5d94e13dd5712bbc9e4e257e8ce197ed8bb2e953bd10c5e0cfcf49db9e (1)
- M src/commands/produce.ts https://github.com/pieroproietti/penguins-eggs/pull/344/files#diff-3e59bc07514451736175c6d5fe871cc856965d1b3ef48b63a00c9878562784ae (8)
- M src/commands/syncto.ts https://github.com/pieroproietti/penguins-eggs/pull/344/files#diff-e227bf631b914414891dc9e3ca86a826ea1d4947c9df7ed947342dee977418b6 (25)
- M src/interfaces/i-filters.ts https://github.com/pieroproietti/penguins-eggs/pull/344/files#diff-519fe5b7724b5bd4ef5d9c9cf8708b7d903ccdf2feebfcd3d41f3a3a552cada8 (1)
Patch Links:
- https://github.com/pieroproietti/penguins-eggs/pull/344.patch
- https://github.com/pieroproietti/penguins-eggs/pull/344.diff
— Reply to this email directly, view it on GitHub https://github.com/pieroproietti/penguins-eggs/pull/344, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHKBFIA4ZT6K6KMDM5B473YX6GYRAVCNFSM6AAAAABETEUTLSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE4DEOBVGMZTMNY . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I had the need to exclude some files during the creation of the LUKS crypted copy.
With this feature is possible to choose which files are to be filtered from the crypted copy by using the template file
exclude.list.cryptedclone
inside the directory /etc/penguins-eggs.d/exclude.list.d/.The cryptedclone exclusion can be invoked in the same way as other exclusions, using the
filters
flag of the command produce.sudo eggs produce --filters=cryptedclone --cryptedclone
Keep in mind that the paths specified in the exclude.list.cryptedclone file are relative to each user's home directory.
Under the hood the command
eggs produce
invokes the commandeggs syncto
to create the LUKS file. I added to this command a new flag-e
or--exclude
that enable the cryptedclone exclusion.sudo eggs syncto -e
I also took the opportunity to fix some small formatting issues and variable names, I hope I'm not considered too picky 😃