Re: automatic script after boot
2009/12/10 Susoczki Attila <email@example.com>:
> I will execute a script after when system is booted.
> Ok, I use this FAQ:
> this script is:
> "sudo virusirto"
> but in the live.log:
> Begin: Running /scripts/live-premount ... done.
> Begin: Running /scripts/live-realpremount ... done.
> Begin: Mounting "/live/image/live/filesystem.squashfs" on
> "/filesystem.squashfs" via "/dev/loop0" ... done.
> Begin: Running /scripts/live-bottom
> ... sudo: error while loading shared libraries: libpam.so.0: cannot open
> shared object file: No such file or directory
> Begin: Copying config on real root fs ... done.
> This script executed earlier then root fs is mounted? How i do
> this script is automated run after when all is okay?
Well not pretty but you can just build in a custom /etc/rc.local
Place your custom rc.local in: config/chroot_local-includes/etc/