Mercurial > vanilla
diff core/etc/etc.sh @ 1222:325631424c65
misc: bring back build function
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 27 Oct 2021 11:32:16 +0200 |
parents | a47aaf9743a0 |
children | 9867e578b1a9 |
line wrap: on
line diff
--- a/core/etc/etc.sh Fri Oct 15 16:07:30 2021 +0200 +++ b/core/etc/etc.sh Wed Oct 27 11:32:16 2021 +0200 @@ -29,22 +29,25 @@ etc/shadow etc/shells" -install -Dm0600 shadow $DESTDIR/etc/shadow -install -Dm0644 fstab $DESTDIR/etc/fstab -install -Dm0644 group $DESTDIR/etc/group -install -Dm0644 issue $DESTDIR/etc/issue -install -Dm0644 passwd $DESTDIR/etc/passwd -install -Dm0644 profile $DESTDIR/etc/profile -install -Dm0644 securetty $DESTDIR/etc/securetty -install -Dm0644 shells $DESTDIR/etc/shells -ln -sf /proc/self/mounts $DESTDIR/etc/mtab +build() +{ + install -Dm0600 shadow $DESTDIR/etc/shadow + install -Dm0644 fstab $DESTDIR/etc/fstab + install -Dm0644 group $DESTDIR/etc/group + install -Dm0644 issue $DESTDIR/etc/issue + install -Dm0644 passwd $DESTDIR/etc/passwd + install -Dm0644 profile $DESTDIR/etc/profile + install -Dm0644 securetty $DESTDIR/etc/securetty + install -Dm0644 shells $DESTDIR/etc/shells + ln -sf /proc/self/mounts $DESTDIR/etc/mtab -# Create /etc/vanilla-release information file. -case $(uname -m) in -'x86_64') - arch="amd64" - ;; -esac + # Create /etc/vanilla-release information file. + case $(uname -m) in + 'x86_64') + arch="amd64" + ;; + esac -echo "VERSION=${PKGVERSION}" > $DESTDIR/etc/vanilla-release -echo "ARCH=$arch" >> $DESTDIR/etc/vanilla-release + echo "VERSION=${PKGVERSION}" > $DESTDIR/etc/vanilla-release + echo "ARCH=$arch" >> $DESTDIR/etc/vanilla-release +}