diff --git a/README.md b/README.md index 7025541..ceaa77c 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ it's easy to extend it. ## Tested with -[OpenWRT Barrier Breaker 14.07](http://downloads.openwrt.org/barrier_breaker/14.07/) +[OpenWRT Chaos Calmer 15.05 RC1](https://downloads.openwrt.org/chaos_calmer/15.05-rc1/) on a TP-Link WDR4300. # Building diff --git a/build.sh b/build.sh index 158b548..647a2a8 100755 --- a/build.sh +++ b/build.sh @@ -25,8 +25,8 @@ fi BUILD=`dirname "$0"`"/build/" BUILD=`absolutize $BUILD` IMGTEMPDIR="${BUILD}/openwrt-build-image-extras" -IMGBUILDERDIR="${BUILD}/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64" -IMGBUILDERURL="https://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64.tar.bz2" +IMGBUILDERDIR="${BUILD}/OpenWrt-ImageBuilder-15.05-rc1-ar71xx-generic.Linux-x86_64" +IMGBUILDERURL="https://downloads.openwrt.org/chaos_calmer/15.05-rc1/ar71xx/generic/OpenWrt-ImageBuilder-15.05-rc1-ar71xx-generic.Linux-x86_64.tar.bz2" PREINSTALLED_PACKAGES="wireless-tools firewall iptables" PREINSTALLED_PACKAGES+=" ppp ppp-mod-pppoe ppp-mod-pppol2tp ppp-mod-pptp kmod-ppp kmod-pppoe" diff --git a/image-extras/root/autoprovision-stage1.sh b/image-extras/root/autoprovision-stage1.sh index 3e42c5f..2168cb3 100755 --- a/image-extras/root/autoprovision-stage1.sh +++ b/image-extras/root/autoprovision-stage1.sh @@ -81,30 +81,28 @@ EOF setupExtroot() { - mkdir -p /mnt/extroot - # TODO they said on the wiki that it's optional, an empty overlay also works... - # we need to make the internal overlay read-only, otherwise the two md5's may be different - # due to writing to the internal overlay from this point until the reboot. - # files: /.extroot.md5sum (extroot) and /etc/extroot.md5sum (internal) - #mount -o remount,ro / - #log "Remounted / as read-only" - + mkdir -p /mnt/extroot/ mount -U $rootUUID /mnt/extroot - #tar -C /overlay -cvf - . | tar -C /mnt/extroot -xf - - # let's write a new rc.local on extroot which will shadow the one which is in the rom and runs stage1 - mkdir -p /mnt/extroot/etc/ - cat >/mnt/extroot/etc/rc.local <${overlay_root}/etc/rc.local < /tmp symlink with the extroot, so that /var is permanent - mkdir -p /mnt/extroot/var - # KLUDGE: but /var/state is assumed to be transient, see https://dev.openwrt.org/ticket/12228 - cd /mnt/extroot/var - ln -s /tmp state - cd - +# mkdir -p ${overlay_root}/var + # KLUDGE: /var/state is assumed to be transient, so link it to tmp, see https://dev.openwrt.org/ticket/12228 +# cd ${overlay_root}/var +# ln -s /tmp state +# cd - log "Finished setting up extroot" }