linux - How to know system is currently installing ISO -
i creating rpm. rpm packed centos iso , install when centos installed. can installed using normal rpm installation method. rpm installation need behave differently if installed iso , installed rpm normal installation method. so, question how know whether system installing iso.
thanks in advance.
you check if /dev/cdrom mounted , if /mnt/cdrom contains installation disc in %pre /%post scripts.
strictly speaking, rpms should agnostic how installed, chances if need in rpm it's flawed design , trying can done in other way.
i suggest looking @ anaconda / kickstart scripts.
Comments
Post a Comment