utils: Exclude Open CAS modules from dracut initramfs image
Open CAS modules are not intended to be included into initramfs, and so CAS upgrade does not trigger initramfs rebuild. This may lead to loading old Open CAS modules if they were included into initramfs image. Explicitly excluding them from initramfs image effectively addressed this issue. Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
@@ -35,6 +35,9 @@ install_files:
|
||||
@install -m 755 casctl $(DESTDIR)$(CASCTL_DIR)/casctl
|
||||
@install -m 755 open-cas-loader $(DESTDIR)$(CASCTL_DIR)/open-cas-loader
|
||||
|
||||
@mkdir -p $(DESTDIR)/etc/dracut.conf.d/
|
||||
@install -m 644 etc/dracut.conf.d/opencas.conf $(DESTDIR)/etc/dracut.conf.d/opencas.conf
|
||||
|
||||
@mkdir -p $(DESTDIR)/sbin
|
||||
@ln -fs $(CASCTL_DIR)/casctl $(DESTDIR)/sbin/casctl
|
||||
|
||||
@@ -60,6 +63,8 @@ uninstall:
|
||||
@rm $(DESTDIR)$(CASCTL_DIR)/open-cas-loader
|
||||
@rm -rf $(DESTDIR)$(CASCTL_DIR)
|
||||
|
||||
@rm $(DESTDIR)/etc/dracut.conf.d/opencas.conf
|
||||
|
||||
@rm $(DESTDIR)/sbin/casctl
|
||||
|
||||
@rm $(DESTDIR)/usr/share/man/man8/casctl.8
|
||||
|
Reference in New Issue
Block a user