not sure whether this works.
i have an image of entire filesystem dump (.img format)
i want to create an rpm which creates a partiotion in PRE section and copies(dumps) the filesystem.img file to that partition in INSTALL section as part of rpm installation.
it doenst work..
seems rpm uses cpio for payload managemenet. and cpio doesnt work with raw partitions? like unix 'dd' command..
even though i use unix 'dd' command in INSTALL section while building rpm. when i install with RPM -IVH . cpio first extracts the payload to destination before INSTALL section gets executed. here destination is raw partition hence "cpio: open failed error is thrown". so installation is not reaching INTALL section of the rpm for Unix 'dd' to get executed.
how to make cpio within rpm installation to work with raw partitions..any help would be appreciated.