Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot fix broken configuration #5240

Open
bryanlarsen opened this issue Jan 22, 2025 · 2 comments
Open

Cannot fix broken configuration #5240

bryanlarsen opened this issue Jan 22, 2025 · 2 comments

Comments

@bryanlarsen
Copy link

Describe the bug

Trying to use ostree config to fix a previous typo to ostree config fails with error: opening repo.

Reproduction steps

❯ sudo ostree config set core.min-free-space-size "3G"
❯ sudo rpm-ostree status
...
     Status: "error: Couldn't start daemon: Error setting up sysroot: Opening sysroot repo: opening repo: Invalid min-free-space-size '3G': It should be of the format '123MB', '123GB' or '123TB'"
...
❯ sudo ostree config set core.min-free-space-size "3GB"
error: opening repo: Invalid min-free-space-size '3G': It should be of the format '123MB', '123GB' or '123TB'

Expected behavior

Should be able to correct mistakes

Actual behavior

❯ sudo ostree config set core.min-free-space-size "3G"
❯ sudo rpm-ostree status
...
     Status: "error: Couldn't start daemon: Error setting up sysroot: Opening sysroot repo: opening repo: Invalid min-free-space-size '3G': It should be of the format '123MB', '123GB' or '123TB'"
...
❯ sudo ostree config set core.min-free-space-size "3GB"
error: opening repo: Invalid min-free-space-size '3G': It should be of the format '123MB', '123GB' or '123TB'

System details

❯ ostree --version
libostree:
 Version: '2024.5'
 Git: 3cfcb44eae70c73b923cbf0eb347a026e00ef543
 Features:
  - inode64
  - initial-var
  - libcurl
  - libsoup3
  - gpgme
  - composefs
  - ex-fsverity
  - libarchive
  - selinux
  - openssl
  - sign-ed25519
  - libmount
  - systemd
  - release
  - p2p
❯ rpm-ostree --version
rpm-ostree:
 Version: '2024.5'
 Git: 4479e824f94b09ec3f6c34f15b08f3813644fff6
 Features:
  - rust
  - compose
  - container
  - fedora-integration
NAME="Fedora Linux"
VERSION="40.20240531.0 (Kinoite)"
ID=fedora
VERSION_ID=40
VERSION_CODENAME=""
PLATFORM_ID="platform:f40"
PRETTY_NAME="Fedora Linux 40.20240531.0 (Bazzite)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:40"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://kinoite.fedoraproject.org"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora-kinoite/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://pagure.io/fedora-kde/SIG/issues"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=40
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=40
SUPPORT_END=2025-05-13
VARIANT="Kinoite"
VARIANT_ID=kinoite
OSTREE_VERSION='40.20240531.0'

Additional information

No response

@bryanlarsen
Copy link
Author

I can't edit /ostree/repo/config because I'm on an immutable OS.

@bryanlarsen
Copy link
Author

fixed with

sudo mount -o remount,rw /dev/nvme0n1p3 /sysroot
sudo vi /ostree/repo/config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant