keyscript option in crypttab ignored

2. toukokuuta 2015 klo 16.10
Sijainti: Vianhallintajärjestelmät: Launchpad
Avainsanat: systemd

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

Vastaa viestiin sen kontekstissa (Launchpad)

The change is working perfectly

1. toukokuuta 2015 klo 13.30
Sijainti: Vianhallintajärjestelmät: Github

@trentrichardson I’ve just tested the branch with the change and it’s working perfectly.

Vastaa viestiin sen kontekstissa (Github)

The best I could figure in the meantime

30. huhtikuuta 2015 klo 21.50
Sijainti: Vianhallintajärjestelmät: Github

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!

Vastaa viestiin sen kontekstissa (Github)

How can I open a prompt in a certain state?

30. huhtikuuta 2015 klo 11.39
Sijainti: Vianhallintajärjestelmät: Github

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.)

Vastaa viestiin sen kontekstissa (Github)

Aww yiss, kiitoksia!

27. huhtikuuta 2015 klo 18.14
Sijainti: Blogit: Yle Areena -blogi
Avainsanat: RSS, Yle

Aww yiss, kiitoksia!

Vastaa viestiin sen kontekstissa (Yle Areena -blogi)

Onko kukaan löytänyt suorien lähetysten RSS-syötettä?

27. huhtikuuta 2015 klo 17.45
Sijainti: Blogit: Yle Areena -blogi
Avainsanat: RSS, Yle

Onko kukaan löytänyt suorien lähetysten RSS-syötettä?

Vastaa viestiin sen kontekstissa (Yle Areena -blogi)

Itte tykkäsin aina enemmän salaliittojaksoista

23. huhtikuuta 2015 klo 12.38
Sijainti: Blogit: Silmänkääntövankila
Avainsanat: Salaiset kansiot, Simpsonit, televisio

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öä.

Vastaa viestiin sen kontekstissa (Silmänkääntövankila)

Vielä luetaan, onnea kymmenvuotiaalle!

22. huhtikuuta 2015 klo 9.45
Sijainti: Blogit: Näkymätön tyttö
Avainsanat: blogaaminen

Vielä luetaan, onnea kymmenvuotiaalle!

Vastaa viestiin sen kontekstissa (Näkymätön tyttö)

Well the CGI ants sure look CGI.

13. huhtikuuta 2015 klo 16.16
Sijainti: Videosivustot: YouTube
Avainsanat: Ant Man, Marvel, video

Well the CGI ants sure look CGI.

Vastaa viestiin sen kontekstissa (YouTube)

Kudos to the game creator for keeping the legacy alive

9. huhtikuuta 2015 klo 15.37
Sijainti: Videosivustot: YouTube
Avainsanat: Bruce Lee, Commodore

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.

Vastaa viestiin sen kontekstissa (YouTube)

« Uudempia - Vanhempia »