Building a rootfs

    n
  • n

    Create the directory for storing your rootfs data. This could be a loop mounted dir, or just a plain directory. For e.g:

    n n

    mkdir /destination/

    n
  • n
  • n

    Install the baselayout (contains the basics of the filesystem)

    n n

    pisi it --ignore-comar baselayout.pisi -D /destination

    n
  • n
  • n

    Install all the pisis you need (replace abcd.pisi with yours)

    n n

    pisi it --ignore-comar abcd.pisi -D /destination

    n
  • n
  • n

    Next we need to configure the rootfs. For this, we need to first setup some requirements:

    n n

    mount --bind /proc /destination/proc

    n
  • n
  • n

    Configure the package

    n n

    pisi cp baselayout.pyp

    n n

    pisi cp

    n
  • n
  • n

    Generate a squashfs

    n n

    mksquashfs destination myimage.img -noappend -comp gzip -ef /tmp/lkj

    n
  • n
n