diff options
-rw-r--r-- | initramfs/distro-specs/debian/functions-default | 2 | ||||
-rw-r--r-- | initramfs/distro-specs/ubuntu/functions-default | 2 |
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 |