tsupport dynamic bootfs partitions in fstab - arm-sdk - os build toolkit for various embedded devices
 (HTM) git clone https://git.parazyd.org/arm-sdk
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 460c82ed77d8444732f772d6d98e157e768fa74f
 (DIR) parent 724ad2289c4638f8503aa6d12a599d7b6d7b6896
 (HTM) Author: parazyd <parazyd@dyne.org>
       Date:   Fri, 27 Oct 2017 19:57:12 +0200
       
       support dynamic bootfs partitions in fstab
       
       Diffstat:
         M extra/generic-root/etc/fstab        |       5 +----
         M lib/helpers                         |       2 ++
       
       2 files changed, 3 insertions(+), 4 deletions(-)
       ---
 (DIR) diff --git a/extra/generic-root/etc/fstab b/extra/generic-root/etc/fstab
       t@@ -1,9 +1,6 @@
        ## <file system>  <mount point> <type> <options>              <dump><pass>
       -## proc
       -proc              /proc         proc   nodev,noexec,nosuid       0    0
       -
        ## rootfs
        /dev/mmcblk0p2    /             ext4   noatime                   0    1
        
        ## bootfs
       -/dev/mmcblk0p1    /boot         vfat   defaults                  0    0
       +/dev/mmcblk0p1    /boot         {{{BOOTFS}}}   defaults                  0    1
 (DIR) diff --git a/lib/helpers b/lib/helpers
       t@@ -82,6 +82,8 @@ copy-root-overlay() {
                        notice "copying generic-root" && \
                        sudo cp -rfv $R/extra/generic-root/* $strapdir
        
       +        sudo sed -e "s/{{{BOOTFS}}}/$bootfs/" -i "$strapdir/etc/fstab"
       +
                [[ -d $R/extra/$device_name ]] && \
                        notice "copying ${device_name}-root" && \
                        sudo cp -rfv $R/extra/$device_name/* $strapdir