archlinux: create user with the zsh shell to avoid an archlinux bash bug

This commit is contained in:
Olivier Medoc 2013-04-26 12:59:53 +02:00 committed by Marek Marczykowski
parent 79bf681509
commit 19fdc8854b
2 changed files with 4 additions and 2 deletions

View File

@ -6,7 +6,7 @@
# Maintainer: Olivier Medoc <o_medoc@yahoo.fr>
pkgname=qubes-vm-core
pkgver=`cat version`
pkgrel=11
pkgrel=12
epoch=
pkgdesc="The Qubes core files for installation inside a Qubes VM."
arch=("x86_64")

View File

@ -160,7 +160,9 @@ pre_install() {
# mv /etc/fstab /var/lib/qubes/fstab.orig
#fi
useradd --create-home user
# Archlinux bash version has a 'bug' when running su -c, /etc/profile is not loaded because bash consider there is no interactive pty when running 'su - user -c' or something like this.
# See https://bugs.archlinux.org/task/31831
useradd --shell /bin/zsh --create-home user
}
## arg 1: the new package version