Skip to content
Snippets Groups Projects
Commit 2fb22dba authored by Daniel Schulte's avatar Daniel Schulte
Browse files

Abhängigkeit auf /etc/resolv.conf in 'test ! -e /etc/resolv.conf' geändert

parent 60841c55
No related branches found
No related tags found
No related merge requests found
......@@ -97,10 +97,14 @@ $(call gentargets,$(STATE_DIR)/rootfs_extracted) : $(call archdir,%)$(STATE_DIR)
touch "$(call archdir,$*)$(STATE_DIR)/rootfs_extracted"
rootfs_prepare : $(ARCH_DIR)$(STATE_DIR)/rootfs_prepared
$(call gentargets,$(STATE_DIR)/rootfs_prepared) : $(call archdir,%)$(STATE_DIR)/rootfs_extracted /etc/resolv.conf
if [ -e "$(call archdir,$*)$(ROOTFS)/etc/resolv.conf" ]; then cp "$(call archdir,$*)$(ROOTFS)/etc/resolv.conf" "$(call archdir,$*)$(ROOTFS)/etc/resolv.conf.bak"; fi
$(call gentargets,$(STATE_DIR)/rootfs_prepared) : $(call archdir,%)$(STATE_DIR)/rootfs_extracted
test ! -e /etc/resolv.conf
test ! -e "$(call archdir,$*)$(ROOTFS)/usr/sbin/init.lxc"
test ! -e "$(call archdir,$*)$(ROOTFS)/remaster/"
if [ -e "$(call archdir,$*)$(ROOTFS)/etc/resolv.conf" ]; \
then \
cp "$(call archdir,$*)$(ROOTFS)/etc/resolv.conf" "$(call archdir,$*)$(ROOTFS)/etc/resolv.conf.bak"; \
fi
echo "#!/bin/bash" > "$(call archdir,$*)$(ROOTFS)/usr/sbin/init.lxc"
echo "shift; exec \$$@" >> "$(call archdir,$*)$(ROOTFS)/usr/sbin/init.lxc"
chmod +x "$(call archdir,$*)$(ROOTFS)/usr/sbin/init.lxc"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment