Bug 1785109
Summary: | The arm installer writes in the host file system instead the SDcard if the host has a LVM system named fedora. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jean-frederic Clere <jclere> |
Component: | fedora-arm-installer | Assignee: | Paul Whalen <pwhalen> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 31 | CC: | jonc_mailbox, oliver, pbrobinson, pwhalen |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-01-04 20:32:37 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jean-frederic Clere
2019-12-19 07:30:56 UTC
Looking to the host file system it looks like arm-image-installer won't work on fedora using LVM... [root@pc-7 TMP]# ls -lt /dev/image total 0 lrwxrwxrwx. 1 root root 7 Dec 16 22:26 root -> ../dm-4 [root@pc-7 TMP]# ls -lt /dev/dm-4 brw-rw----. 1 root disk 253, 4 Dec 16 22:26 /dev/dm-4 [root@pc-7 TMP]# ls -lt /dev/fedora total 0 lrwxrwxrwx. 1 root root 7 Dec 6 21:39 home -> ../dm-3 lrwxrwxrwx. 1 root root 7 Dec 6 21:39 swap -> ../dm-2 lrwxrwxrwx. 1 root root 7 Dec 6 21:39 root -> ../dm-1 to remove /dev/image: [root@pc-7 TMP]# dmsetup info | grep image Name: image-root [root@pc-7 TMP]# ls -lt /dev/mapper/ | grep image lrwxrwxrwx. 1 root root 7 Dec 16 22:26 image-root -> ../dm-4 [root@pc-7 TMP]# dmsetup clear /dev/mapper/image-root [root@pc-7 TMP]# ls -lt /dev/image total 0 lrwxrwxrwx. 1 root root 7 Dec 16 22:26 root -> ../dm-4 [root@pc-7 TMP]# dmsetup info | grep image Name: image-root [root@pc-7 TMP]# dmsetup remove /dev/mapper/image-root [root@pc-7 TMP]# dmsetup info | grep image [root@pc-7 TMP]# ls -lt /dev/image ls: cannot access '/dev/image': No such file or directory In fact to reproduce: Steps to Reproduce: 1. run /usr/bin/arm-image-installer 2. check /etc/passwd and /.autorelabel they changed. I have added exit 1 in line 394 of the /usr/bin/arm-image-installer script and try by hands... +++ [root@pc-7 NOTES]# vgrename image fedora /dev/fedora: already exists in filesystem [root@pc-7 NOTES]# pvs -o +vguuid PV VG Fmt Attr PSize PFree VG UUID /dev/mapper/luks-2714fdba-306c-49e6-abfe-b0002c29d4da fedora lvm2 a-- 475.93g 0 TeSaZz-iIrL-N3V9-c1SP-9xa5-mj6u-z9Saqp /dev/mmcblk0p3 image lvm2 a-- 28.22g 0 nuX1yZ-zMw7-Qd7p-Lxfh-qCnl-keR2-lyz7wf +++ Also: +++ [root@pc-7 TMP]# vgrename nuX1yZ-zMw7-Qd7p-Lxfh-qCnl-keR2-lyz7wf fedora /dev/fedora: already exists in filesystem [root@pc-7 TMP]# pvs -o +vguuid PV VG Fmt Attr PSize PFree VG UUID /dev/mapper/luks-2714fdba-306c-49e6-abfe-b0002c29d4da fedora lvm2 a-- 475.93g 0 TeSaZz-iIrL-N3V9-c1SP-9xa5-mj6u-z9Saqp /dev/mmcblk0p3 image lvm2 a-- 28.22g 0 nuX1yZ-zMw7-Qd7p-Lxfh-qCnl-keR2-lyz7wf +++ I have also tried vgrename -f and vgrename --force FEDORA-2019-7d06d79076 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-7d06d79076 FEDORA-2019-540c480868 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-540c480868 arm-image-installer-2.14-1.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-540c480868 arm-image-installer-2.14-1.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-7d06d79076 FEDORA-2019-540c480868 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-540c480868 FEDORA-2019-7d06d79076 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-7d06d79076 arm-image-installer-2.15-1.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-540c480868 arm-image-installer-2.15-1.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-7d06d79076 [root@pc-7 NOTES]# pvs -o +vguuid PV VG Fmt Attr PSize PFree VG UUID /dev/mapper/luks-2714fdba-306c-49e6-abfe-b0002c29d4da fedora lvm2 a-- 475.93g 0 TeSaZz-iIrL-N3V9-c1SP-9xa5-mj6u-z9Saqp /dev/mmcblk0p3 fedora-server lvm2 a-- 28.22g 0 nuX1yZ-zMw7-Qd7p-Lxfh-qCnl-keR2-lyz7wf and the RPI boots with problem (the ssh key, selinux relabelled etc) thanks and Merry Xmas. (In reply to Jean-frederic Clere from comment #12) > [root@pc-7 NOTES]# pvs -o +vguuid > PV VG Fmt > Attr PSize PFree VG UUID > /dev/mapper/luks-2714fdba-306c-49e6-abfe-b0002c29d4da fedora lvm2 > a-- 475.93g 0 TeSaZz-iIrL-N3V9-c1SP-9xa5-mj6u-z9Saqp > /dev/mmcblk0p3 fedora-server lvm2 > a-- 28.22g 0 nuX1yZ-zMw7-Qd7p-Lxfh-qCnl-keR2-lyz7wf > > and the RPI boots with problem (the ssh key, selinux relabelled etc) What problem? > thanks and Merry Xmas. Thanks, you too! what problem? Oops I meant without problem. arm-image-installer-2.15-1.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report. arm-image-installer-2.15-1.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report. |