Add code to livecd.sh to make sure /home/gentoo is owned by the 'gentoo' user

svn path=/trunk/; revision=457
This commit is contained in:
Andrew Gaffney 2008-02-28 16:43:29 +00:00
parent 57713c2ac2
commit 66e2c934e5
2 changed files with 10 additions and 0 deletions

View file

@ -2,6 +2,8 @@
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
28 Feb 2008; Andrew Gaffney <agaffney@gentoo.org> scripts/livecd.sh:
Add code to livecd.sh to make sure /home/gentoo is owned by the 'gentoo' user
28 Feb 2008; Brent Baude <ranger@gentoo.org>
specs/ppc/ppc64/livecd-stage2.spec

View file

@ -15,3 +15,11 @@ case `uname -m` in
;;
esac
# This is necessary because /home/gentoo in the squashfs ends up getting owned
# by whoever the owner of the overlay files were on the build box. This causes
# weird stuff to happen like X failing to start because it doesn't have the
# ability to write the .Xauthority file
if [[ -d /home/gentoo ]]
then
chown -R gentoo:users /home/gentoo
fi