From a5b0267b9c37d277f674898357ba03efdc4b0b8a Mon Sep 17 00:00:00 2001 From: maride Date: Sun, 6 Aug 2017 17:38:48 +0200 Subject: [PATCH 1/3] Add user step --- steps/60-user.step | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 steps/60-user.step diff --git a/steps/60-user.step b/steps/60-user.step new file mode 100644 index 0000000..efc2346 --- /dev/null +++ b/steps/60-user.step @@ -0,0 +1,14 @@ +#!/bin/sh + +echo -n "~> Do you want to create an user account? (Y/n) " +read answer + +if [ "$answer" == "n" ]; then + exit 0 +else + echo -n " Name of your new user?" + read name + arch-chroot /mnt useradd -m $name + passwd $name + exit 0 +fi From 3449b6e1a7a2400bd8609f578d4747b84863ef44 Mon Sep 17 00:00:00 2001 From: maride Date: Mon, 7 Aug 2017 16:25:24 +0200 Subject: [PATCH 2/3] Actually make the step bootable --- steps/60-user.step | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 steps/60-user.step diff --git a/steps/60-user.step b/steps/60-user.step old mode 100644 new mode 100755 From b184028c2bfaed518192de3006a89ef25061cf55 Mon Sep 17 00:00:00 2001 From: maride Date: Mon, 7 Aug 2017 16:25:59 +0200 Subject: [PATCH 3/3] Change passwd in chroot, not on ISO --- steps/60-user.step | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/steps/60-user.step b/steps/60-user.step index efc2346..9bde113 100755 --- a/steps/60-user.step +++ b/steps/60-user.step @@ -6,9 +6,9 @@ read answer if [ "$answer" == "n" ]; then exit 0 else - echo -n " Name of your new user?" + echo -n " Name of your new user? " read name arch-chroot /mnt useradd -m $name - passwd $name + arch-chroot /mnt passwd $name exit 0 fi