mirror of
https://github.com/pygos/build.git
synced 2024-11-21 18:49:46 +01:00
cleanup: remove /opt and /srv from default filesystem
Let packages decide if they want to install something to /opt or /srv, but there is no reason to have empty directories by default in the read only root filesystem. Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
7f5f64978d
commit
2df0ef2945
2 changed files with 1 additions and 15 deletions
|
@ -110,17 +110,3 @@ For the time being, it has been decided to not include multiarch support.
|
|||
All packages are built for a single target architecture. This simplifies both
|
||||
the build process and the final system as well as reducing the memory footprint
|
||||
of the system image.
|
||||
|
||||
|
||||
## The srv and opt directories
|
||||
|
||||
A `/srv` directory is included in the filesystem to store static service files
|
||||
such as web sites served by a web server. The intention is to have those files
|
||||
backed into the squashfs image.
|
||||
|
||||
If custom applications are built and bundled into the filesystem, it is
|
||||
strongly encouraged to use the standard locations for those. However, if it is
|
||||
desired for some reason, a `/opt` directory is also added by default. The
|
||||
contents of the `PATH` variable and the configuration file of the loader may
|
||||
have to be adjusted.
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ build() {
|
|||
|
||||
# setup skeleton
|
||||
mkdir -pv ${PKGBUILDDIR}/{bin,lib,etc,dev,sys,proc,tmp,var,run}
|
||||
mkdir -pv ${PKGBUILDDIR}/{boot,usr,srv,mnt,opt}
|
||||
mkdir -pv ${PKGBUILDDIR}/{boot,usr,mnt}
|
||||
mkdir -pv ${PKGBUILDDIR}/cfg/{preserve,overlay}
|
||||
|
||||
cp -r "$SCRIPTDIR/pkg/$PKGNAME/etc" "$PKGBUILDDIR"
|
||||
|
|
Loading…
Reference in a new issue