Skip to content

Commit

Permalink
Remove the user setup temporary files.
Browse files Browse the repository at this point in the history
  • Loading branch information
herpiko committed Aug 15, 2016
1 parent 5568447 commit c550ac6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/b-i-setup-fs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ do_chroot /usr/bin/apt-get --yes clean

read AUTOLOGIN USERNAME < $ROOTFS/tmp/user-setup
echo "Configuring user $USERNAME"
echo "Auto-login: $AUTOLIGIN"
rm -f $ROOTFS/tmp/user-setup


# This is the original group used in full ISO of BlankOn, since the current ISO generate the minimum packages,
# some groups doesnt exist.
Expand All @@ -87,10 +88,12 @@ do_chroot /usr/sbin/useradd -G $USER_GROUPS -m -s /bin/bash $USERNAME

do_chroot /usr/sbin/chpasswd $USERNAME < $ROOTFS/tmp/user-pass
do_chroot /usr/bin/chfn < $ROOTFS/tmp/user-info
rm -f $ROOTFS/tmp/user-pass

if [ -f /tmp/root-pass ];
then
do_chroot /usr/sbin/chpasswd root < $ROOTFS/tmp/root-pass
rm -f $ROOTFS/tmp/root-pass
fi

###### CUSTOM GROUP
Expand Down

0 comments on commit c550ac6

Please sign in to comment.