Skip to content
Advertisement

nWipe Package compiled in Centos not working in Busybox embedded linux

I have compiled nwipe open source utility in Centos. Once compiled it works absolutely fine on the machine where it was compiled. I have also copied the compiled package to another machine running Centos along with required libraries and it works fine.

I have tried to package this utility to work with Busybox RAMBOX embedded linux. The purpose of this utility is to PXEBoot the workstations via TFTP and auto wipe all the hard-drives.

In order to achieve this, I have used Linux kernel from Centos netboot CD and downloaded the busybox, copied nwipe utility that I compiled on another Centos development server.

I also copied all the required libraries. See below.

when I do ldd nwipe. It shows the dependencies for the libraries.

JavaScript

so I copied all these libraries dependencies to the busybox /lib /usr/lib folders.

Finally I compiled the busybox and used cpio and gzip to get the initrd.img file.

Then I use centos netboot kernel 2.6 and initrd.img to pxeboot the workstation. Everything works fine, I can use all the busybox basic linux commands. But when I execute ./nwipe it does not work. It simply shows the shell prompt again.

JavaScript

see below the content of my init file.

JavaScript

Could someone please help me what I have to do to fix this?

How I can run my compiled software with busybox?

Thanks well in advance for reading this post.

Advertisement

Answer

I have managed to fix this by not using busybox. This time around I have used Centos minimal install and used dracut utility to create kernel and initramfs and mounted the root file system as NFS on the server. It works like a charm.

It works like a full blown Linux Centos and it is pretty fast.

Thank you for looking at this post 🙂

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement