diff options
author | Florian Fainelli <florian@openwrt.org> | 2016-02-11 03:05:29 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2016-02-11 03:05:29 +0000 |
commit | c33e86a8542ba717bb41d2c2ef3af4f87d8ad4d4 (patch) | |
tree | f21312db8287ac71eafc27313fba88a08ba16683 /include | |
parent | 6cf22a1ed80c19f1975df58fdd104ef84829b575 (diff) | |
download | master-187ad058-c33e86a8542ba717bb41d2c2ef3af4f87d8ad4d4.tar.gz master-187ad058-c33e86a8542ba717bb41d2c2ef3af4f87d8ad4d4.tar.bz2 master-187ad058-c33e86a8542ba717bb41d2c2ef3af4f87d8ad4d4.zip |
kernel: Revert "kernel: set root on NFS when enabled"
This reverts r48591, users needing NFS root will know how to configure
their platform and kernel command-line appropriately.
Reported-by: Petr Štetiar <ynezz@true.cz>
Signed-off-by: Florian Fainelli <florian@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48689 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r-- | include/kernel-defaults.mk | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk index 4b5de5b488..406fd46343 100644 --- a/include/kernel-defaults.mk +++ b/include/kernel-defaults.mk @@ -104,18 +104,6 @@ define Kernel/SetNoInitramfs echo 'CONFIG_INITRAMFS_SOURCE=""' >> $(LINUX_DIR)/.config.set endef -ifeq ($(CONFIG_KERNEL_ROOT_NFS),y) - define Kernel/SetNfsCmdline - rm -f $(LINUX_DIR)/.config.prev - mv $(LINUX_DIR)/.config $(LINUX_DIR)/.config.old - grep -v "CONFIG_CMDLINE=" $(LINUX_DIR)/.config.old > $(LINUX_DIR)/.config - grep "CONFIG_CMDLINE=" $(LINUX_DIR)/.config.old | cut -d\" -f2 | sed 's/root=\/dev\/\([a-z0-9]*\)\(.*\)/CONFIG_CMDLINE=\"root=\/dev\/nfs ip=dhcp\2\"/' >> $(LINUX_DIR)/.config - endef -else - define Kernel/SetNfsCmdline - endef -endif - define Kernel/Configure/Default $(LINUX_CONF_CMD) > $(LINUX_DIR)/.config.target # copy CONFIG_KERNEL_* settings over to .config.target @@ -126,7 +114,6 @@ define Kernel/Configure/Default $(SCRIPT_DIR)/metadata.pl kconfig $(TMP_DIR)/.packageinfo $(TOPDIR)/.config $(KERNEL_PATCHVER) > $(LINUX_DIR)/.config.override $(SCRIPT_DIR)/kconfig.pl 'm+' '+' $(LINUX_DIR)/.config.target /dev/null $(LINUX_DIR)/.config.override > $(LINUX_DIR)/.config.set $(call Kernel/SetNoInitramfs) - $(call Kernel/SetNfsCmdline) rm -rf $(KERNEL_BUILD_DIR)/modules cmp -s $(LINUX_DIR)/.config.set $(LINUX_DIR)/.config.prev || { \ cp $(LINUX_DIR)/.config.set $(LINUX_DIR)/.config; \ |