[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: automatic script after boot



Greetings,

2009/12/10 Susoczki Attila <celtic@aion.hu>:
> Hello!
> I will execute a script after when system is booted.
> Ok, I use this FAQ:
> http://wiki.debian.org/DebianLive/FAQ#Q.3AHowdoIaddascriptrunningimmediatelyafterallotherscriptswhenthelivesystemboots.3F
> 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.
> 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/


> Thx.
>


Reply to: