WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: mount cpio files (potentualy)  (Read 50 times)

Offline mocore

  • Hero Member
  • *****
  • Posts: 760
  • ~.~
mount cpio files (potentualy)
« 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)

Offline mocore

  • Hero Member
  • *****
  • Posts: 760
  • ~.~
Re: mount cpio files (...)
« Reply #1 on: Today at 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
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 ...


Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 12734
Re: mount cpio files (potentualy)
« Reply #2 on: Today at 09:46:11 AM »
Hi mocore
Installing  libgit2-dev.tcz  should fix that.