summaryrefslogtreecommitdiffstats
path: root/initramfs/distro-specs/ubuntu/functions-default
diff options
context:
space:
mode:
Diffstat (limited to 'initramfs/distro-specs/ubuntu/functions-default')
-rw-r--r--initramfs/distro-specs/ubuntu/functions-default2
1 files changed, 1 insertions, 1 deletions
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