Git: version for GNU / Linux distribution

I am working on my own version of the GNU / Linux distribution. I need to add / remove packages, edit scripts ... I am running on an unsquashed filesystem (squashfs-root /) used as root for chroot. I am wondering which is the best way to manage my work. Should I create a git repository and add squashfs-root /? My main fear is messing up the chroot env and can't go back to working version. Thanks, hamen

UPDATE : I'll try rdiff-backup. Thanks.

+1


a source to share


3 answers


The problem with git (and other sets of version controls) is that it doesn't handle permissions and special files very well.

etckeeper is a collection of scripts on top of git for managing /etc

. This can already provide you with more security.



Finally, you say what you are working with chroot()

. This will allow you to easily create backups from overseas chroot for example. with rdiff-backup , which creates a nice compact view on disk while allowing you to view the most recent version at the same time.

+2


a source


Automation of everything you do, and just the version of the scripts you use to build your distribution. This way, you can always recreate your distribution if you mess up something.



+1


a source


git will work for this, it is useful as TimeMachine / System Restore. I am using it for my / etc dir. If it's small enough, you can push it to github and use it as a backup and distribution mechanism.

0


a source







All Articles