n3rdopolis / checkinstall

A fork of checkinstall to make it utilize overlayfs
GNU General Public License v2.0
7 stars 3 forks source link

Technical questions about checkinstall #2

Open nyxrobotics opened 3 weeks ago

nyxrobotics commented 3 weeks ago

Nice to meet you. I am new to checkinstall. I have done a lot of research on the internet and I think you are the only user who is working on improving checkinsall. I have two things I want to improve. Can you give me a hint if you have a solution for this?

n3rdopolis commented 3 weeks ago

Older checkinstall used a different layer, installwatch which has the mkdir bug.

This fork uses overlayfs, you might want to pass --fstrans=no --overlayfstrans=yes and all file systems need to support being overlayfs lowerdirs. Most do, except for fat and ntfs IIRC, and some others. It is not obvious which ones unless you test. It uses a probe to determine that. I use this in chroots, so it may fail with /boot/efi mounted...

It is because of https://github.com/n3rdopolis/checkinstall/commit/1f8fb872a645337ca61ea9c939796ea0a5ac5ef0 defaults to Debian

nyxrobotics commented 3 weeks ago

Thanks for the reply. I understood very well. I have an additional question, what file do I edit to make --fstrans=no --overlayfstrans=yes the default value?

n3rdopolis commented 3 weeks ago

Actually I think it might be the default, unless the probe finds a filesystem mounted that overlayfs doesn't support as a lowerdir

n3rdopolis commented 3 weeks ago

You could get around it with --exclude=/boot/efi,/sys,/proc,/dev You'd have to pass that as an argument, or

I think in /etc/checkinstallrc

EXCLUDE=/boot/efi,/sys,/proc,/dev
TRANSLATE=0
OVERLAYFSTRANS=1
nyxrobotics commented 3 weeks ago

Thanks for kindly sharing the information. I will give it a try.