Browse Source

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

Olivier Medoc 11 years ago
parent
commit
19fdc8854b
2 changed files with 4 additions and 2 deletions
  1. 1 1
      archlinux/PKGBUILD
  2. 3 1
      archlinux/PKGBUILD.install

+ 1 - 1
archlinux/PKGBUILD

@@ -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")

+ 3 - 1
archlinux/PKGBUILD.install

@@ -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