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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -

PostgreSQL 9.x - pg_read_binary_file & inserting files into bytea -