Re: mostly Solved: [Re: cryptdisks runlevel configuration for lvm2 + encrypted swap file]

2011-07-29 Thread Bob Proulx
Jimmy Wu wrote: > Since /var is a LVM2 logical volume, it won't get mounted until after > mountall.sh (I assume). Since cryptdisks comes before mountall.sh in the > dependency chain I (also assume that I) can't move it after mountall.sh > without creating some circular mess. > > I also checked

mostly Solved: [Re: cryptdisks runlevel configuration for lvm2 + encrypted swap file]

2011-07-29 Thread Jimmy Wu
On Wed, 27 Jul 2011, 10:18-0400, Jean-Marc Ranger wrote: [...] > Not sure how versed you are in script programming, but my take at > debugging this would be to add more traces in cryptdisks.functions > file, especially in the handle_crypttab_line_start funtion, that is > called for each line in cr

Re: cryptdisks runlevel configuration for lvm2 + encrypted swap file

2011-07-29 Thread Jimmy Wu
On Fri, 29 Jul 2011, 00:59-0600, Bob Proulx wrote: > Jimmy Wu wrote: > So... I am curious. I often read that people are wanting to > "configure their runlevels". You are not the only one. Other people > talk about it too. But I never know why. And I never quite know > exactly what someone me

Re: cryptdisks runlevel configuration for lvm2 + encrypted swap file

2011-07-28 Thread Bob Proulx
Jimmy Wu wrote: > Thanks for the detailed email and the advice about service vs > invoke-rc.d - I should probably spend more time figuring out what the The win for package postinst scripts using invoke-rc to start services is that if they are installed in a chroot then maybe they shouldn't start

Re: cryptdisks runlevel configuration for lvm2 + encrypted swap file

2011-07-28 Thread Jimmy Wu
On Wed, 27 Jul 2011, 14:09-0600, Bob Proulx wrote: > Jimmy Wu wrote: > > I even put aside my reservations about messing with the links in > > rc.d, > > Squeeze is running a dependency based boot scheme controlled by > insserv. You may be fighting it and not knowing it. Normally you > would hav

Re: cryptdisks runlevel configuration for lvm2 + encrypted swap file

2011-07-27 Thread Bob Proulx
Jimmy Wu wrote: > I even put aside my reservations about messing with the links in > rc.d, Squeeze is running a dependency based boot scheme controlled by insserv. You may be fighting it and not knowing it. Normally you would have LSB dependency headers in the /etc/init.d/ scripts and insserv wi

Re: cryptdisks runlevel configuration for lvm2 + encrypted swap file

2011-07-27 Thread Jimmy Wu
On Wed, 27 Jul 2011, 10:18-0400, Jean-Marc Ranger wrote: > Since no-one replied yet... > > I don't have an answer, only ideas. > > IIRC, scripts in only one of the rc?.d are executed on startup. > Which one depend on the requested runlevel, default value being > specified in /etc/inittab. > > L

Re: cryptdisks runlevel configuration for lvm2 + encrypted swap file

2011-07-27 Thread Jean-Marc Ranger
Since no-one replied yet... I don't have an answer, only ideas. IIRC, scripts in only one of the rc?.d are executed on startup. Which one depend on the requested runlevel, default value being specified in /etc/inittab. Looking at my cryptdisks and cryptdisks-early scripts, they appear to be