Hi All
I am trying to build a minimal image to have the OS totally in memory (/dev/ramX).
SLES15.2 for the ISO image.
SLES15.5 for the kiwi host.
Any direction would be appreciated.
Do not want to used a HDD
If filter device is omitted from <oemconfig> /dev/sda is used to install the ISO.
The messae from qemu-kvm:
Warning: Could not find by-id representation of ram0
Kiwi setup:
<type image="oem" filesystem="ext4" initrd_system="dracut" installiso="true" installboot="install" kernelcmdline="console=ttyS0, rd.live.ram=1,rd.kiwi.ramdisk ramdisk_size=4096000" bootpartition="false">
<bootloader name="grub2" console="serial" timeout="1"/>
<oemconfig>
<oem-unattended>false</oem-unattended>
<oem-skip-verify>true</oem-skip-verify>
<oem-unattended-id>/dev/ram1</oem-unattended-id>
<oem-device-filter>/dev/sd</oem-device-filter>
<oem-swap>false</oem-swap>
<oem-multipath-scan>false</oem-multipath-scan>
</oemconfig>
Kiwi host:
kiwi-systemdeps-bootloaders-9.23.12-1.1.x86_64
kiwi-tools-9.23.12-1.1.x86_64
python3-kiwi-9.23.12-1.1.x86_64
kiwi-systemdeps-core-9.23.12-1.1.x86_64
The problem:
Starting dracut pre-mount hook...
[ 4.570383] dracut-pre-mount[418]: Warning: Could not find by-id representation of ram0
[ 4.571764] dracut-pre-mount[418]: Warning: Using original device /dev/ram0
[ 4.590415] dracut-pre-mount[418]: Warning: Could not find by-id representation of ram1
...
Then it stops at asking:
lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
x Select Installation Disk x
x lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x
x x /dev/ram0 3.9G x x
x x /dev/ram1 3.9G x x
-> select /dev/rm0
-> then
lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
x Destroying ALL data on /dev/ram0, continue ? x
x x
x x
tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu
x < Yes > < No > x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
The loops on this:
[ 4.570383] dracut-pre-mount[418]: Warning: Could not find by-id representation of ram0
[ 4.571764] dracut-pre-mount[418]: Warning: Using original device /dev/ram0
[ 4.590415] dracut-pre-mount[418]: Warning: Could not find by-id representation of ram1
From here to maintenance mode:
Entering emergency mode. Exit the shell to continue.
Type "journalctl" to view system logs.
You might want to save "/run/initramfs/rdsosreport.txt" to a USB stick or /boot
after mounting them and attach it to a bug report.
Press Enter for maintenance
(or press Control-D to continue):
vvvvvvvvvvvvvvvvvvvvvvvvvvvvv
:/root# cd /dev
:/dev/disk/by-id# ls -l
total 0
lrwxrwxrwx 1 root root 9 Feb 9 11:48 ata-QEMU_DVD-ROM_QM00003 -> ../../sr0
lrwxrwxrwx 1 root root 10 Feb 9 11:49 dm-name-ram0p1 -> ../../dm-0
lrwxrwxrwx 1 root root 10 Feb 9 11:49 dm-uuid-part1-devnode_1:0_Wh5pYvM -> ../../dm-0
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
In /run/initramfs/rdsosreport.txt:
[ 64.634657] localhost systemd[1]: Started Dracut Run Interactive.
[ 64.645004] localhost systemd-udevd[1822]: failed to execute '/usr/lib/udev/kpartx_id' 'kpartx_id 254 0 part1-devnode_1:0_Wh5pYvM': No such file or directory
[ 64.653632] localhost systemd[1]: Started dracut pre-mount hook.
From Kiwi build:
[ INFO ]: 12:39:40 | --> DEFAULT_APPEND:"console=ttyS0, rd.kiwi.ramdisk ramdisk_size=4096000 root=UUID=c0d0eeae-dd80-43b4-815d-52938ff6c044 rw "
[ INFO ]: 12:39:40 | --> FAILSAFE_APPEND:"console=ttyS0, rd.kiwi.ramdisk ramdisk_size=4096000 root=UUID=c0d0eeae-dd80-43b4-815d-52938ff6c044 rw ide=nodma apm=off noresume edd=off nomodeset 3 "
[ INFO ]: 12:39:40 | --> LOADER_LOCATION:mbr
[ INFO ]: 12:39:40 | --> LOADER_TYPE:grub2
In /run/initramfs/rdsosreport.txt: The same UUID
ID_PART_TABLE_UUID=edf34926
ID_PART_TABLE_TYPE=dos
+ ls -l /dev/disk/by-id /dev/disk/by-label /dev/disk/by-partuuid /dev/disk/by-path /dev/disk/by-uuid
/dev/disk/by-id:
total 0
lrwxrwxrwx 1 root root 9 Feb 9 11:48 ata-QEMU_DVD-ROM_QM00003 -> ../../sr0
lrwxrwxrwx 1 root root 10 Feb 9 11:49 dm-name-ram0p1 -> ../../dm-0
lrwxrwxrwx 1 root root 10 Feb 9 11:49 dm-uuid-part1-devnode_1:0_Wh5pYvM -> ../../dm-0
/dev/disk/by-label:
total 0
lrwxrwxrwx 1 root root 9 Feb 9 11:48 INSTALL -> ../../sr0
lrwxrwxrwx 1 root root 10 Feb 9 11:49 ROOT -> ../../dm-0
/dev/disk/by-partuuid:
total 0
lrwxrwxrwx 1 root root 10 Feb 9 11:49 edf34926-01 -> ../../dm-0
/dev/disk/by-path:
total 0
lrwxrwxrwx 1 root root 9 Feb 9 11:48 pci-0000:00:01.1-ata-2 -> ../../sr0
lrwxrwxrwx 1 root root 9 Feb 9 11:48 pci-0000:00:01.1-ata-2.0 -> ../../sr0
/dev/disk/by-uuid:
total 0
lrwxrwxrwx 1 root root 9 Feb 9 11:48 2021-02-09-11-41-10-00 -> ../../sr0
lrwxrwxrwx 1 root root 10 Feb 9 11:49 c0d0eeae-dd80-43b4-815d-52938ff6c044 -> ../../dm-0
+ for _i in /etc/conf.d/*.conf
Thanks so much,
Jan