The setup for unlocking an encrypted volume during boot using (only) a keyfile (on a detachable USB drive) usually calls for a keyscript to be specified as one of the encrypted volume’s options. But with systemd, such encrypted volumes can only be unlocked during boot by typing in a passphrase.
Steps to reproduce:
1. Have a LUKS encrypted volume.
2. Have said volume specified in /etc/crypttab, with keyscript= option pointing to your script for outputting the unlocking key.
3. Boot.
What I expect to happen:
To have the volume unlocked by the script at boot time without manual intervention.
What happens instead:
Plymouth shows a prompt to enter a valid passphrase for the volume.
Workarounds:
Apparently the options for unlocking encrypted drives, including keyscript, can also be specified at the kernel command-line, without crypttab, and according to yaantc at Hacker News [1] this can be used to work around the issue. I haven’t personally tried this.
* [1] https://news.ycombinator.com/item?id=8477913
@trentrichardson I’ve just tested the branch with the change and it’s working perfectly.
Hey @trentrichardson, and thanks for the response! The best I could figure in the meantime was to initialize the prompt differently in each branch, like so:
if (user.isSignedIn) {
states = {
signOut: states.signOut,
signIn: states.signIn,
register: states.register
};
} else {
states = {
signIn: states.signIn,
signOut: states.signOut,
register: states.register
};
}
thePrompt = $.prompt(states);
But it’s definitely better to have true support for this in the extension itself. Excellent!
Sorry if this is obvious, but how can I open a multiple-state prompt in a specific state other than the first one in the states object? In other words, in the first statesdemo example, how can I open the prompt in state1 instead of state0?
I’m working on a login/logout/registration form with each of the three as a separate state and would like to start the prompt in either the ”log in” or ”log out” state depending on whether the user is currently logged in or not.
(I’m trying to work out the solution reading Impromptu’s source code, but figured I’d also pose this question here for others like me to find in the future.)
Onko kukaan löytänyt suorien lähetysten RSS-syötettä?
Itte tykkäsin aina enemmän salaliittojaksoista, Monster of the Weekit olivat laadultaan aina vähän hit and miss. Lisäksi koin niiden ”lopussa kaikki palaa ennalleen niin että seuraavassa jaksossa ei ole enää mitään muistijälkiä tästä jaksosta” -asetelman ärsyttävän lapsellisena, se muistutti Simpsoneita (jolle saman tyylin olin valmis sallimaan, koska se oli piirretty komedia). Joitain pieniä visuaalisia viittauksia Salaiset kansiot toki myös menneitten MotW-jaksojen tapahtumiin silloin tällöin ruudulle heitti, ja tietysti sitten Toomsista tykkäsin juuri siksi, että hahmo teki comebackin myös myöhemmässä jaksossa.
Muistan sarjaa 90-luvulla katsellessani pitäneeni sellaista koko kauden tai jopa sarjan ylitse ulottuvaa juonikaarta jotenkin uutena ja ihmeellisenä ilmiönä, mutta en tiedä oliko se tosiasiassa niinkään radikaalia kuin sittenkin enemmän seurausta siitä, etten juurikaan ollut myöhäisillan tv-sarjoja ennen X-Filesia katsellut. Mutta nykypäivän poliisisarjoista (varsinkin Foxilla) on kyllä helppo nähdä, että niissä on paljon Salaisten kansioiden perintöä.
Vielä luetaan, onnea kymmenvuotiaalle!
Well the CGI ants sure look CGI.
Well kudos to the game creator for keeping the legacy alive, but I have to say that the game seems to suffer from artificial difficulty.