Once arch-chrooted, is it exactly the same as live system?
In the Arch install guide on the wiki, when I do arch-chroot /mnt, can I treat it as the live system now? Previously, I followed the guide literally and restarted it gave me a base system as expected. But then I would after the restart, I would install and configure my system, then do another restart.
Can I do all this right after a arch-chroot so that I only need 1 reboot instead of 2 reboots to get everything done? Are there caveats I need to consider in an arch-chroot?
P.S. Should I:
- enable both systemctl-networkd and systemd-resolved (wiki says I need to set some settings but just enabling them worked for me) or
- enable dhcpcd@<interface>.service ?
I used to do the latter based on the old beginner's guide, but the former seems to be the "recommended" one now?
Thanks!
Edited 13 Feb 2017. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 3 · 100% up
- Kind
- Text
- ID
- 5trber
2 comments
No, it's not a live system. You're still running on the installer's kernel, so installing kernel modules can be problematic. There's also no systemd session and no dbus, so some services may fail to run.
I usually install all packages, desktop environment and configurations while in the chroot and then just reboot into a completed install. Of course there's always something I forget and end up needing to tweak later but I try to just go through my checklist and get everything done from before the reboot.
Protip: It's especially critical to make sure that your networking is good to go and ssh is enabled if you don't have easy access (headless server) to the machine directly after reboot.