Hide Forgot
Created attachment 1757202 [details] Anaconda logs with kickstart in run/install Created attachment 1757202 [details] Anaconda logs with kickstart in run/install Description of problem: When the hard drive contains a preloaded CDROM image, the system cannot be installed, due to python-blivet excluding any hard disk containing a iso9660 file system partition. This happens even when the installation is performed without using a DVD at all. The reason for this seems new detection code introduced with 8.3 Version-Release number of selected component (if applicable): anaconda-33.16.3.26-1.el8 How reproducible: ALWAYS Steps to Reproduce: 1. Attach a disk to a VM and copy a DVD on it # dd if=/dev/sr0 of=/dev/sdb bs=10M 2. Detach the disk and attach it to a new VM to install The VM was configured with a DVD drive (unused), but this doesn't change anything. 3. Install the system using a kickstart (/run/install/ks.cfg in anaconda.tar.gz) -------- 8< ---------------- 8< ---------------- 8< ---------------- 8< -------- [...] zerombr clearpart --all --initlabel autopart --type=lvm bootloader --location=mbr [...] -------- 8< ---------------- 8< ---------------- 8< ---------------- 8< -------- Actual results: Console: -------- 8< ---------------- 8< ---------------- 8< ---------------- 8< -------- Saving storage configuration... Failed to save storage configuration No usable disks. -------- 8< ---------------- 8< ---------------- 8< ---------------- 8< -------- storage.log: -------- 8< ---------------- 8< ---------------- 8< ---------------- 8< -------- DEBUG:anaconda.storage:Marking device sr0 as protected. DEBUG:anaconda.storage:Marking device sda as protected. -------- 8< ---------------- 8< ---------------- 8< ---------------- 8< -------- Expected results: /dev/sda gets repartitioned and system installs Additional info: This is a critical issue for customers deploying system booting on a pre-initialized hard disk hosting a pre-boot environment.
Moving this to Anaconda, it is marking all iso9660 devices as protected to be able to use them as installation sources. I believe the change was introduced because of https://bugzilla.redhat.com/show_bug.cgi?id=1856264. Related upstream PRs: https://github.com/rhinstaller/anaconda/pull/2746 https://github.com/rhinstaller/anaconda/pull/2747
The disk is also not visible in UI during manual installation. A workaround for kickstart installation is to clean the disk in %pre script, for example: %pre wipefs -a /dev/sda %end