chainwu
chainwu

Reputation: 23

Linux file system skeleton version control

We are doing some embedded Linux project, the vendor provides us a basic filesystem skeleton, and we would like to put it into the version control system (GIT), but there are some special files which GIT does not like, for example, the device file, the pipe files, etc. I wounder if anyone have a better suggestion to put a filesystem under version control? Thanks!

Upvotes: 2

Views: 703

Answers (2)

J-16 SDiZ
J-16 SDiZ

Reputation: 26910

There are some script for keeping dev files with git, eg: EtcKeeper http://kitenet.net/~joey/code/etckeeper/

Upvotes: 1

Soren
Soren

Reputation: 14688

Two choices;

1) either put the script which creates the nodes in /dev and the like under version control, and have your build system execute that script.

or

2) Make a dd of the basic file system to a plain file, and put that dd resulting file under version conntrol

Upvotes: 1

Related Questions