Artix Linux Forum

Artix Linux => Installation / Migration / Configuration => Topic started by: Uiyx on 05 November 2021, 19:48:51

Title: I can't install dhcpcd while installing artix, read only filesystem error.
Post by: Uiyx on 05 November 2021, 19:48:51
I'm on artix runit, I can't install dhcpcd because my file system is read-only. How can I fix this?

Output:

Code: [Select]
pacman -S dhcpcd
warning: dhcpcd-9.4.0-1.1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) dhcpcd-9.4.0-1.1

Total Installed Size:  0.48 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring                     [###############] 100%
(1/1) checking package integrity                   [###############] 100%
(1/1) loading package files                        [###############] 100%
(1/1) checking for file conflicts                  [###############] 100%
(1/1) checking available disk space                [###############] 100%
:: Processing package changes...
(1/1) reinstalling dhcpcd                          [###############] 100%
:: Running post-transaction hooks...
(1/2) Creating system user accounts...
(2/2) Creating temporary files...
Failed to open file "/sys/devices/system/cpu/microcode/reload": Read-only file system
error: command failed to execute correctly
Title: Re: I can't install dhcpcd while installing artix, read only filesystem error.
Post by: Dudemanguy on 06 November 2021, 04:04:26
First of all, the message says you are reinstalling it (it's already installed). Secondly, the only thing that fails is post-transaction hook not the actual package. The "Failed to open file "/sys/devices/system/cpu/microcode/reload": Read-only file system" message happens if you're running from the live iso or something. That's not a bug. It really is read-only. If your root partition on a real, installed system was really read-only, you'd be running into way, way more problems than just this.
Title: Re: I can't install dhcpcd while installing artix, read only filesystem error.
Post by: VictorBrand on 06 November 2021, 04:20:17
Yeah, there is a virtual file system which is mounted on /sys. During the installation, you are in chroot, and therefore your /sys is somewhat "fake" (it is bound to a "real" /sys of a real host system). This warning has nothing to do with the actual installation on the disk (which ran normally), but it is rather an artifact of being in chroot instead of real working host.