]> www.infradead.org Git - users/jedix/linux-maple.git/commit
uek-rpm: Clean up installed directories when uninstalling kernel-ueknano
authorSomasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Fri, 6 Oct 2017 23:54:06 +0000 (16:54 -0700)
committerSomasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Wed, 11 Oct 2017 22:13:57 +0000 (15:13 -0700)
commit008dae863de6802b3f6c6a043d8dcce90c671365
tree11bf6e2cd97a247078acd810fd20701b47e64d23
parent799da1091458934c00609b87e70160891ff31610
uek-rpm: Clean up installed directories when uninstalling kernel-ueknano

Orabug: 26929773

When creating kernel-ueknano package, the files (modules) to be included in
it are supplied from a input file. This input file lists the modules with
install path. When installing the rpm, parent directories for these
files are created automatically. When uninstalling, the modules get removed
but not the parent directories.  Because of this, /lib/modules/<kversion>/kernel
and its subdirectories are left intact even after the package uninstall.

This commit adds post uninstall scriptlet to remove the
"/lib/modules/<kversion>/" directory when the package is uninstalled.

Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
uek-rpm/ol6/kernel-uek.spec