summaryrefslogtreecommitdiffstats
path: root/initramfs
diff options
context:
space:
mode:
authorDirk von Suchodoletz2007-07-16 08:33:55 +0200
committerDirk von Suchodoletz2007-07-16 08:33:55 +0200
commit1139d9bef32f409bcca3e02e22dec4295b4750e4 (patch)
tree6970545d9e1e2c9083c95a2d2d4bc8280948f035 /initramfs
parentRemoved late_dm option (too confusing and too little effect), small fix (diff)
downloadcore-1139d9bef32f409bcca3e02e22dec4295b4750e4.tar.gz
core-1139d9bef32f409bcca3e02e22dec4295b4750e4.tar.xz
core-1139d9bef32f409bcca3e02e22dec4295b4750e4.zip
Wrong path checked (gdm in passwd).
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1243 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs')
-rw-r--r--initramfs/distro-specs/debian/functions-default2
-rw-r--r--initramfs/distro-specs/ubuntu/functions-default2
2 files changed, 2 insertions, 2 deletions
diff --git a/initramfs/distro-specs/debian/functions-default b/initramfs/distro-specs/debian/functions-default
index 4af35da2..32d4f9b6 100644
--- a/initramfs/distro-specs/debian/functions-default
+++ b/initramfs/distro-specs/debian/functions-default
@@ -195,7 +195,7 @@ config_gdm () {
ln -sf ../${D_INITDIR}/gdm /mnt/etc/rc3.d/K20gdm
ln -sf ../${D_INITDIR}/gdm /mnt/etc/rc3.d/S01gdm
# check for gdm user in passwd file and add it if not present
-if ! grep "gdm:" /etc/passwd >/dev/null 2>&1; then
+if ! grep "gdm:" /mnt/etc/passwd >/dev/null 2>&1; then
echo "gdm:x:113:">>/mnt/etc/group
echo "gdm:x:106:113:Gnome Display Manager:/var/lib/gdm:/bin/false" \
>>/mnt/etc/passwd
diff --git a/initramfs/distro-specs/ubuntu/functions-default b/initramfs/distro-specs/ubuntu/functions-default
index f02d8778..342a63c6 100644
--- a/initramfs/distro-specs/ubuntu/functions-default
+++ b/initramfs/distro-specs/ubuntu/functions-default
@@ -201,7 +201,7 @@ if [ "x$start_xdmcp" = "xgdm" ]; then
fi
ln -sf ../${D_INITDIR}/gdm /mnt/etc/rc3.d/S01gdm
# append gdm user; check for presence first
-if ! grep "gdm:" /etc/passwd >/dev/null 2>&1; then
+if ! grep "gdm:" /mnt/etc/passwd >/dev/null 2>&1; then
echo "gdm:x:113:" >>/mnt/etc/group
echo "gdm:x:106:113:Gnome Display Manager:/var/lib/gdm:/bin/false" \
>>/mnt/etc/passwd