Tiny Core Linux

General TC => Programming & Scripting - Unofficial => Topic started by: mocore on May 03, 2026, 06:42:12 PM

Title: mount cpio files (potentualy)
Post by: mocore on May 03, 2026, 06:42:12 PM


i read this

You can't edit core.gz directly. You need to unpack it, edit the file
of interest, then repack it:

thought ... why ? (...do i find that process causes me friction  ;D )

did a little digging/filtering and found this  (untested!;-) any one feeling brave? ... copy of repo zip attached in the links sink )

https://www.netfort.gr.jp/~dancer/diary/daily/2022-Sep-10.html.en

Quote
Life Tried implementing FUSE cpiofs. I thought it might be fun to implement a file system that can mount initrd file systems. I've implemented symlinks and regular files handling and then I realized that it is kind of annoying that I need to implement hard links. cpiofs

https://github.com/dancerj/gitlstreefs/blob/master/experimental/cpiofs.cc ( 386 lines + includes )

Code: [Select]
/*
  cpio file system.

  Allows you to mount cpio files.

Example:

 sudo ../out/experimental/cpiofs ~/mnt/ \
   --underlying_file=$(readlink -f ~/tmp/initrd.img.gunzip )

*/

+.. https://github.com/dancerj/gitlstreefs/blob/master/experimental/cpiofs_test.sh

 8)
Title: Re: mount cpio files (...)
Post by: mocore on May 04, 2026, 08:57:50 AM
just ftr

creating /workspace dir in root and chown tc:staff /workspace

loading
bash ninja gcc / compiletc   fuse3-dev

extracting gitlstreefs-master.zip (https://github.com/dancerj/gitlstreefs/archive/refs/heads/master.zip)
and running build.sh in whatever directory gitlstreefs-master.zip was extracted to

... appears to be attempting to build though thing's requiring git2.h are failing as it was not loaded ...

Title: Re: mount cpio files (potentualy)
Post by: Rich on May 04, 2026, 09:46:11 AM
Hi mocore
Installing  libgit2-dev.tcz  should fix that.