Ignore:
Timestamp:
Dec 24, 2016, 3:58:07 PM (3 years ago)
Author:
amain
Message:

rootfs: several minor fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debian/rootfs/debian.mk

    r873 r880  
    110110
    111111debian/rootfs/files-install: debian/rootfs/bootstrap
    112         if [ ! -f $(ROOTFS_BUILD_DIR)/etc/init.d/rcS.debian -a -e $(ROOTFS_BUILD_DIR)/etc/init.d/rcS ]; then \
    113                 sudo mv -v $(ROOTFS_BUILD_DIR)/etc/init.d/rcS $(ROOTFS_BUILD_DIR)/etc/init.d/rcS.debian; \
    114         fi
    115112        if [ ! -p $(ROOTFS_BUILD_DIR)/dev/initctl ]; then  \
    116113                sudo mkdir -p $(ROOTFS_BUILD_DIR)/dev;         \
     
    182179debian/rootfs/post-setup: debian/rootfs/bootstrap
    183180        sudo mkdir -p $(ROOTFS_BUILD_DIR)/etc/apt
    184         sudo bash -c "echo -e \"# For low memory (<64M) system, which have a hard time running apt-get update,\n# DebWrt provides a Debian mirror containing a, still very large, subset (~13.000) of all\n# Debian packages.\ndeb http://debian.debwrt.net/ $(ROOTFS_DEBIAN_RELEASE) main\" > $(ROOTFS_BUILD_DIR)/etc/apt/sources.list"
     181        sudo bash -c "echo -e \"# For low memory (<64M) system, which have a hard time running apt-get update,\n# DebWrt provides a Debian mirror containing a, still very large, subset (~13.000) of all\n# Debian packages.\ndeb http://debian.debwrt.net/debian $(ROOTFS_DEBIAN_RELEASE) main\" > $(ROOTFS_BUILD_DIR)/etc/apt/sources.list"
    185182        sudo bash -c "echo \"deb http://packages.debwrt.net/debwrt $(ROOTFS_DEBIAN_RELEASE)-debwrt-stable main\" >> $(ROOTFS_BUILD_DIR)/etc/apt/sources.list"
    186183        sudo bash -c "echo \"$(DEBWRTVERSION)\" >$(ROOTFS_BUILD_DIR)/etc/debwrt_version"
     
    199196        @echo "I: Qemu 2nd stage install disabled. Second stage needs now to be performend on the target device itself."
    200197        @echo "I: Qemu 2nd stage install can be enabled using menuconfig (ROOTFS_DEBIAN_QEMU_2ND_STAGE)."
     198        @# Firstboot only works on sysvinit systems, not on newer systemd
     199        sudo mv $(ROOTFS_BUILD_DIR)/etc/init.d/rcS $(ROOTFS_BUILD_DIR)/etc/init.d/rcS.Debian
     200        sudo ln -s /etc/init.d/rcS.firstboot $(ROOTFS_BUILD_DIR)/etc/init.d/rcS
     201
    201202endif
    202203        touch $@
    203204
    204 debian/rootfs/clean:
     205debian/rootfs/clean: debian/rootfs/debwrt-packages-clean
    205206        sudo rm -rf $(ROOTFS_BUILD_DIR)
    206207        rm -f debian/rootfs/bootstrap
Note: See TracChangeset for help on using the changeset viewer.