From 3087f9a40322d3d4869360b72f2f64d93f69756b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82?= Date: Fri, 17 Jul 2026 21:25:17 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20BYODE=20script=20fixes=20=E2=80=94=20ini?= =?UTF-8?q?tramfs,=20hosts,=20no=20sddm,=20sync?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../usr/local/bin/antergos-offline-install | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/iso-profiles/antergos/live-overlay/usr/local/bin/antergos-offline-install b/iso-profiles/antergos/live-overlay/usr/local/bin/antergos-offline-install index 4ef446c..db8c080 100755 --- a/iso-profiles/antergos/live-overlay/usr/local/bin/antergos-offline-install +++ b/iso-profiles/antergos/live-overlay/usr/local/bin/antergos-offline-install @@ -152,13 +152,18 @@ cmd mount --bind /proc "$TARGET/proc" cmd mount --bind /sys "$TARGET/sys" cmd mount --bind /run "$TARGET/run" +# Generate initramfs +estat "Generating initramfs..." +cmd chroot "$TARGET" /bin/bash -c "mkinitcpio -P" 2>/dev/null || true + # Install GRUB estat "Installing GRUB..." cmd chroot "$TARGET" /bin/bash -c "grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=Antergos" cmd chroot "$TARGET" /bin/bash -c "grub-mkconfig -o /boot/grub/grub.cfg" 2>/dev/null || true -# Set hostname +# Set hostname and hosts cmd chroot "$TARGET" /bin/bash -c "echo antergos > /etc/hostname" +cmd chroot "$TARGET" /bin/bash -c "echo '127.0.1.1 antergos.localdomain antergos' >> /etc/hosts" # Root password prompt PASSWD=$(zenity --password --title="Set root password" --text="Enter root password for the installed system" 2>/dev/null) @@ -177,7 +182,7 @@ fi # ── Enable services via artix-service ── estat "Enabling services..." -for sv in sddm NetworkManager dbus acpid bluetoothd cronie cupsd dhcpcd power-profiles-daemon syslog-ng userspawn; do +for sv in NetworkManager dbus acpid bluetoothd cronie cupsd dhcpcd power-profiles-daemon syslog-ng userspawn; do cmd chroot "$TARGET" artix-service enable "$sv" 2>/dev/null || true done @@ -217,6 +222,10 @@ for m in home var/log var/cache .snapshots boot; do done cmd umount "$TARGET" +# ── Sync before reboot ── +estat "Syncing filesystems..." +cmd sync + # ── Final warning ── prompt_msg "Installation complete" \ "Antergos NeXT has been installed to $DISK.