summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.com>2022-03-18 17:03:26 +0000
committerSerge Schneider <serge@raspberrypi.com>2022-03-21 08:37:25 +0000
commitb0316ae8706e3abe0d4bd2bdf1cda976a6e2e6a7 (patch)
tree31c596c8795a2151200955cb9dd5000491abbba7
parent95ac3cfb3b223dad058c1aee1d8b6e3f5e5b5935 (diff)
Enable userconf-pi on first boot
-rw-r--r--export-image/01-user-rename/00-packages1
-rwxr-xr-xexport-image/01-user-rename/01-run.sh5
-rwxr-xr-xexport-image/02-set-sources/01-run.sh (renamed from export-image/01-set-sources/01-run.sh)0
-rwxr-xr-xexport-image/03-network/01-run.sh (renamed from export-image/02-network/01-run.sh)0
-rw-r--r--export-image/03-network/files/resolv.conf (renamed from export-image/02-network/files/resolv.conf)0
-rwxr-xr-xexport-image/04-set-partuuid/00-run.sh (renamed from export-image/03-set-partuuid/00-run.sh)0
-rwxr-xr-xexport-image/05-finalise/01-run.sh (renamed from export-image/04-finalise/01-run.sh)0
7 files changed, 6 insertions, 0 deletions
diff --git a/export-image/01-user-rename/00-packages b/export-image/01-user-rename/00-packages
new file mode 100644
index 0000000..e8b69fc
--- /dev/null
+++ b/export-image/01-user-rename/00-packages
@@ -0,0 +1 @@
+userconf-pi
diff --git a/export-image/01-user-rename/01-run.sh b/export-image/01-user-rename/01-run.sh
new file mode 100755
index 0000000..8a5617b
--- /dev/null
+++ b/export-image/01-user-rename/01-run.sh
@@ -0,0 +1,5 @@
+#!/bin/bash -e
+
+on_chroot << EOF
+ SUDO_USER="${FIRST_USER_NAME}" rename-user -f -s
+EOF
diff --git a/export-image/01-set-sources/01-run.sh b/export-image/02-set-sources/01-run.sh
index 5f51209..5f51209 100755
--- a/export-image/01-set-sources/01-run.sh
+++ b/export-image/02-set-sources/01-run.sh
diff --git a/export-image/02-network/01-run.sh b/export-image/03-network/01-run.sh
index 4150732..4150732 100755
--- a/export-image/02-network/01-run.sh
+++ b/export-image/03-network/01-run.sh
diff --git a/export-image/02-network/files/resolv.conf b/export-image/03-network/files/resolv.conf
index cae093a..cae093a 100644
--- a/export-image/02-network/files/resolv.conf
+++ b/export-image/03-network/files/resolv.conf
diff --git a/export-image/03-set-partuuid/00-run.sh b/export-image/04-set-partuuid/00-run.sh
index 16e1b15..16e1b15 100755
--- a/export-image/03-set-partuuid/00-run.sh
+++ b/export-image/04-set-partuuid/00-run.sh
diff --git a/export-image/04-finalise/01-run.sh b/export-image/05-finalise/01-run.sh
index c104366..c104366 100755
--- a/export-image/04-finalise/01-run.sh
+++ b/export-image/05-finalise/01-run.sh