[arch-general] update of chroot fails - error: cannot remove file '/sys/': Read-only file system

Allan McRae allan at archlinux.org
Fri Jun 29 23:50:17 EDT 2012


On 30/06/12 13:37, David C. Rankin wrote:
> On 06/29/2012 08:07 PM, Allan McRae wrote:
>> Just because the answers are getting more ridiculous....
>>
>>
>> Open /usr/sbin/mkarchroot and change:
>>
>> 	mount -o remount,ro,bind "${working_dir}/sys"
>> to
>> 	mount -o remount,bind "${working_dir}/sys"
>>
>>
>> Allan
> 
> Ooh, you're good :)
> 
>   That was it -- works like a charm now.
> 
> ... just how did the little ',ro' come to cause such a problem?
> 

/sys is in the filesystem package.   When pacman upgrades filesystem it
tries to remove /sys then reinstall it (not really, simplified...).  It
sees /sys is read only and so it can not deal with that so bails.  It is
a bug in pacman.

Allan




More information about the arch-general mailing list