mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zdev: Add build option to update initial RAM-disk by default
Some Linux distributions always include a copy of all persistent device configuration data when updating the initial RAM-disk. This makes chzdev's persistent device configuration changes ineffective because device configuration directives applied in the RAM-disk take precedence over those stored in the root filesystem. This patch introduces a new build-time switch which allows distributions to specify that whenever there is a persistent device configuration change, the RAM-disk is updated automatically. This feature can be enabled by adding 'ZDEV_ALWAYS_UPDATE_INITRD=1' as a zdev build option. Where, by default ZDEV_ALWAYS_UPDATE_INITRD is 0. Co-developed-by: Peter Oberparleiter <oberpar@linux.ibm.com> Signed-off-by: Peter Oberparleiter <oberpar@linux.ibm.com> Signed-off-by: Vineeth Vijayan <vneethv@linux.ibm.com> Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
663262c962
commit
7dd03eaeec
@@ -4,6 +4,16 @@ include ../../common.mak
|
||||
ALL_CPPFLAGS += -I ../include -std=gnu99 -Wno-unused-parameter \
|
||||
-Wno-missing-field-initializers
|
||||
|
||||
# Adding ZDEV_ALWAYS_UPDATE_INITRD=1 option will update the initial RAM-disk
|
||||
# without the user interaction upon the modification of a persistent device
|
||||
# configuration.
|
||||
|
||||
ifeq ($(ZDEV_ALWAYS_UPDATE_INITRD),1)
|
||||
ALL_CPPFLAGS += -DZDEV_ALWAYS_UPDATE_INITRD=true
|
||||
else
|
||||
ALL_CPPFLAGS += -DZDEV_ALWAYS_UPDATE_INITRD=false
|
||||
endif
|
||||
|
||||
# Core
|
||||
chzdev_objects += attrib.o chzdev.o device.o devnode.o devtype.o exit_code.o \
|
||||
export.o hash.o inuse.o misc.o namespace.o opts.o path.o \
|
||||
|
||||
Reference in New Issue
Block a user