.automated_script.sh: seed user home from /etc/skel after archinstall
archinstall creates the user from user_credentials.json BEFORE installing the 'additional packages' list, so when omarchy-settings populates /etc/skel/.config/... later in the pacstrap, the user's home has already been created from an empty skel and missed the seed (user boots into a terminal with no Hyprland configs). Copy /etc/skel into /home/$OMARCHY_USER after archinstall finishes (by which point omarchy-settings has populated skel) and chown to the user. cp -rT keeps it idempotent: existing files get overwritten, dirs merge.
This commit is contained in:
1 file changed
+12
-4
@@ -48,10 +48,18 @@ install_arch() {
|
|||||||
|
|
||||||
install_omarchy() {
|
install_omarchy() {
|
||||||
# archinstall pacstrap'd omarchy + omarchy-installer (which pulls
|
# archinstall pacstrap'd omarchy + omarchy-installer (which pulls
|
||||||
# omarchy-settings + omarchy-limine) so /etc/skel is populated before user
|
# omarchy-settings + omarchy-limine) and created the user. The user's
|
||||||
# creation. But omarchy itself only hard-depends on the bricking set; the
|
# home is missing /etc/skel content though, because archinstall creates
|
||||||
# rest of the default install set lives in omarchy-base.packages and gets
|
# the user BEFORE installing the additional packages list (we saw user
|
||||||
# installed here in the chroot.
|
# creation at "Creating user $OMARCHY_USER" then omarchy-settings
|
||||||
|
# installing /etc/skel/.config/... much later). Seed it now.
|
||||||
|
arch-chroot /mnt bash -c "
|
||||||
|
cp -rT /etc/skel /home/$OMARCHY_USER/
|
||||||
|
chown -R $OMARCHY_USER:$OMARCHY_USER /home/$OMARCHY_USER/
|
||||||
|
"
|
||||||
|
|
||||||
|
# Install the rest of the default Omarchy install set (everything in
|
||||||
|
# omarchy-base.packages that isn't already a hard dep of omarchy).
|
||||||
arch-chroot /mnt bash -c '
|
arch-chroot /mnt bash -c '
|
||||||
mapfile -t pkgs < <(grep -v "^#\|^$" /usr/share/omarchy/install/omarchy-base.packages)
|
mapfile -t pkgs < <(grep -v "^#\|^$" /usr/share/omarchy/install/omarchy-base.packages)
|
||||||
pacman -S --noconfirm --needed "${pkgs[@]}"
|
pacman -S --noconfirm --needed "${pkgs[@]}"
|
||||||
|
|||||||
Reference in new issue
Block a user