Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: I can't install dhcpcd while installing artix, read only filesystem error. (Read 1524 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

I can't install dhcpcd while installing artix, read only filesystem error.

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

Re: I can't install dhcpcd while installing artix, read only filesystem error.

Reply #1
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.

 

Re: I can't install dhcpcd while installing artix, read only filesystem error.

Reply #2
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.