StorageNode Rootfs Format

StorageNode  image  format  matches  the  cloudboot initramfs  format providing:

– More  efficient  root  fs  memory  allocation

– Built  as  CPIO  archive  (standard  format  supported  by  kernel)  and extracted  at  boot  Ame

– Dropbear  ssh  deamon  is  enabled  by  default  since  3.2.2

– DB  is  stored  in  memory  by  default  as  standalone  loopback  file mount  device  (non-­‐sparse).  Size  is  adjustable  via onappstore.conf

To unpack, run the following:

mkdir  /tmp/extract;  cd  /tmp/extract  &&  zcat  ../initrd.img  |
cpio  -­‐id  ||  exit  1

To repack,run:

cd  /tmp/extract  &&  find  .  |  cpio  -­‐H  newc  -­‐-­‐quiet  -­‐o)  |  gzip  -­‐9 >  ./initrd.img  ||  exit  1