Skip to content
Snippets Groups Projects
Commit 39e784d1 authored by Sébastien Luttringer's avatar Sébastien Luttringer
Browse files

keep root user. See FS#56017

parent c7d327c8
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@
pkgname=filesystem
pkgver=2017.10
pkgrel=1
pkgrel=2
pkgdesc='Base Arch Linux files'
arch=('i686' 'x86_64')
license=('GPL')
......@@ -14,12 +14,15 @@ backup=('etc/crypttab' 'etc/fstab' 'etc/group' 'etc/gshadow' 'etc/host.conf'
'etc/hosts' 'etc/issue' 'etc/ld.so.conf' 'etc/motd' 'etc/nsswitch.conf'
'etc/passwd' 'etc/profile' 'etc/resolv.conf' 'etc/securetty'
'etc/shadow' 'etc/shells')
source=('crypttab' 'env-generator' 'fstab' 'host.conf' 'hosts' 'issue'
'ld.so.conf' 'locale.sh' 'motd' 'nsswitch.conf' 'os-release' 'profile'
'resolv.conf' 'securetty' 'shells' 'sysusers' 'tmpfiles')
source=('crypttab' 'env-generator' 'fstab' 'group' 'gshadow' 'host.conf' 'hosts'
'issue' 'ld.so.conf' 'locale.sh' 'motd' 'nsswitch.conf' 'os-release'
'passwd' 'profile' 'resolv.conf' 'securetty' 'shadow' 'shells'
'sysusers' 'tmpfiles')
md5sums=('5fa6674df7645d7f5895f2d12b4ef4e9'
'2b0344e9639f35f3c0d5637a23556089'
'e33f6dfdd61978fcb3ddf1431286e05a'
'7fed1e1fb855e41a6d64d41f8521d69a'
'1c1e3b08acfa286f4b417c49de3e4366'
'7d119a9cce152aa182fb3392ddeecea7'
'a1315ea3e2b64d197b6efaf9c14ff778'
'7813c481156f6b280a3ba91fc6236368'
......@@ -28,9 +31,11 @@ md5sums=('5fa6674df7645d7f5895f2d12b4ef4e9'
'd41d8cd98f00b204e9800998ecf8427e'
'44851ecc062ba34a4c024b6f3246c48f'
'0a0fbb8e64faabb40023bd180d7190a1'
'5182ac38a0de85da8ade93ef71975ca4'
'13feaea89d404729ad2f7cf0bcc41d85'
'0ee015fad07732676d9488ae498eed41'
'f04bcb2803afc4dcb95670fe87343b4d'
'f64466dd77c7bec37a8b47681468211a'
'a78cd8d7f8240a8448edee82f503c34e'
'af7832eabaac9804c22f1f2b53816a49'
'0267a3a463f35eec8a31f40a720dfd86')
......@@ -52,16 +57,15 @@ package() {
# setup /etc and /usr/share/factory/etc
install -d etc/{ld.so.conf.d,skel,profile.d} usr/share/factory/etc
for f in fstab host.conf hosts issue ld.so.conf motd nsswitch.conf crypttab \
resolv.conf securetty shells profile; do
for f in fstab group host.conf hosts issue ld.so.conf motd nsswitch.conf \
passwd resolv.conf securetty shells profile; do
install -m644 "$srcdir"/$f etc/
install -m644 "$srcdir"/$f usr/share/factory/etc/
done
chmod 600 {usr/share/factory/,}etc/crypttab
ln -s ../proc/self/mounts etc/mtab
for f in passwd group gshadow shadow; do
install -Dm600 /dev/null etc/$f
install -Dm600 /dev/null usr/share/factory/etc/$f
for f in gshadow shadow crypttab; do
install -m600 "$srcdir"/$f etc/
install -m600 "$srcdir"/$f usr/share/factory/etc/
done
touch etc/arch-release
install -m755 "$srcdir"/locale.sh etc/profile.d/locale.sh
......
group 0 → 100644
root:x:0:root
root:::root
passwd 0 → 100644
root:x:0:0::/root:/bin/bash
shadow 0 → 100644
root::14871::::::
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment