89luca89 / 89luca89/distrobox

[Error] opensuse netcfg failed to upgrade

Đang mở
#2,058 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Go
Star
13k
Fork
541
Merge trung bình
20 giờ 47 phút
Pull request đã merge (30 ngày)
4

Mô tả

**Describe the bug**
When installing netcfg for a distrobox based on OpenSuSE tumbleweed then I receive the following error:

```
error: unpacking of archive failed on file /etc/hostnamel;8320b: cpio: rename failed - Device or resource busy
```

This was reported also here: https://forums.opensuse.org/t/error-to-upgrade-netcfg-distrobox/181934

However, the solution to umount /etc/hostname does not help

**To Reproduce**
```
distrobox enter test
sudo zypper in netcfg -y
```

**Expected behavior**
I can install the netcfg package without issues. It works outside distrobox, so I assume that it is not the package.

**Desktop (please complete the following information):**

podman: 5.8.1

distrobox: 1.8.2.4

on opensuse tumbleweed, the distrobox is installed from the OpenSuSE repository

**Additional context**
This was reported also here: https://forums.opensuse.org/t/error-to-upgrade-netcfg-distrobox/181934

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Lỗi xảy ra khi cài đặt netcfg bên trong một container distrobox OpenSuSE, với /etc/hostname được báo là đang bận. Hãy bắt đầu bằng việc xem xét cách distrobox quản lý các mount của container và những tệp như /etc/hostname. Xem mã nguồn distrobox để tìm hiểu phần thiết lập container và logic entry, đặc biệt là quanh các bind mount. Tái hiện sự cố trong một container kiểm thử để xem tệp có bị một tiến trình khóa hay không. Kiểm tra xem upstream podman hoặc OpenSuSE có workaround hoặc bản sửa lỗi nào đã biết hay không.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
bash, linux, shell
Lĩnh vực
cli, tooling
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.