mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
41108c98aa
The current code first assembles the ngdump init ramdisk, and creates the filesystem on the dump disk afterwards. ngdump uses uuids to mount the dump device. Because the filesystem uuid is changing with the final mkfs, ngdump has to use the partuuid of the device. This does work for nvme, but not for dasds. Another problem is that dryrun likely wouldn't work if there's no partition table on the dump device. To fix these issues, move the mkfs to the ngdump helper script so we can use the filesystem uuid. When --dryrun is specified the script passes /dev/null as ngdump device to make mkinitramfs happy. As the initramdisk is never used in this case, this shouldn't be a problem. Signed-off-by: Sven Schnelle <svens@linux.ibm.com> Acked-by: Stefan Haberland <sth@linux.ibm.com> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>