Linux distro for booting from USB and automatically running a script

1

I want a lightweight CLI only Linux distribution that can rapidly boot from a USB stick, run a script by itself at startup and then shut down the computer.

All of this without any user intervention other than turning on the laptop with USB plugged in.

Anyone have recommendations?

skittles88

Posted 2011-06-30T11:19:39.103

Reputation: 13

Answers

0

  • Linux From Scratch
  • ArchLinux
  • Gentoo

Have a look around on Distrowatch, particularly in the Live-Medium, Specialist, Source based and Rescue catagories. Find something where the build system makes sense to you so that you can build the distro from the ground up with a just what you need but having a working reference point, and then add in your scripts on top of that.

Caleb

Posted 2011-06-30T11:19:39.103

Reputation: 4 323

Thanks. I've found one called finix i think it might fit the bill. – skittles88 – 2011-06-30T11:31:53.527

Finix looks good :) – Caleb – 2011-06-30T11:35:21.187

Then i just put the script in /etc/rc.local i think... – skittles88 – 2011-06-30T11:52:32.470

@skittles88: Yup. – Caleb – 2011-06-30T11:57:26.037

Hmm only issue is im not sure about 'persistent storage'. Since it is basically a live cd booting from a usb stick, my script would vanish from /etc/rc.local after a single reboot. I used unetbootin to put finix on usb, it has option for persistent storage but says 'ubuntu and derivatives only' – skittles88 – 2011-06-30T12:07:00.577