Bug 46679 - mount -o rw: WARNING: source write-protected, mounted read-only.
Summary: mount -o rw: WARNING: source write-protected, mounted read-only.
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: util-linux (show other bugs)
Version: unstable
Hardware: x86 Linux
: P5 normal
Assignee: Alexey Gladkov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-28 11:15 MSK by Vitaly Chikunov
Modified: 2023-06-28 17:06 MSK (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vitaly Chikunov 2023-06-28 11:15:32 MSK
Монтирование u+rw имиджа с `-o rw` происходит в read-only.

Упали тесты
https://git.altlinux.org/beehive/logs/Sisyphus/x86_64/archive/2023/0628/error/fscrypt-0.3.4-alt1
https://git.altlinux.org/beehive/logs/Sisyphus/x86_64/archive/2023/0628/error/fscryptctl-1.1.0-alt1

Reproducer, при сборке fscrypt:

  root@x86_64:~/RPM/BUILD/fscrypt-0.3.4# vm-run --kvm=cond --sbin --user --udevd
  builder@x86_64:~/RPM/BUILD/fscrypt-0.3.4$ make test-setup test test-teardown
  builder@x86_64:~/RPM/BUILD/fscrypt-0.3.4$ sudo -s
  root@x86_64:~/RPM/BUILD/fscrypt-0.3.4# ls -l /tmp/fscrypt-image
  -rw-r--r-- 1 builder builder 20971520 Jun 28 07:57 /tmp/fscrypt-image
  root@x86_64:~/RPM/BUILD/fscrypt-0.3.4# mount -o rw,loop,user /tmp/fscrypt-image /tmp/fscrypt-mount
  mount: /tmp/fscrypt-mount: WARNING: source write-protected, mounted read-only.

Upstream bug: https://github.com/util-linux/util-linux/issues/2305
Upstream fix: https://github.com/util-linux/util-linux/pull/2306
Comment 1 Repository Robot 2023-06-28 12:48:15 MSK
util-linux-2.39.1-alt1 -> sisyphus:

 Wed Jun 28 2023 Alexey Gladkov <legion@altlinux.ru> 2.39.1-alt1
 - New version (2.39.1).
 - libmount: (optlist) correctly detect ro status (ALT#46679).
Comment 2 Vitaly Chikunov 2023-06-28 17:06:35 MSK
Спасибо большое!