Dialog within the initramfs

Hi there,
i would like to use a Dialog box (Dialog is an easy-to-use tool to create ncurses-based "windows" from bash) for password entry within the initramfs to encrypt the root device.
So I added /usr/bin/dialog to the BINARIES variable in the mkinitcpio.conf and modified /lib/initcpio/hooks/encrypt a bit (by adding a dialog box). In the comments of mkinitcpio.conf it is said that the binaries were parsed for dependent libraries so I didn't copy them manually.
ldd /usr/bin/dialog
linux-vdso.so.1 => (0x00007fff92bc5000)
libncursesw.so.5 => /usr/lib/libncursesw.so.5 (0x00007ffc0adc6000)
libm.so.6 => /lib/libm.so.6 (0x00007ffc0aad2000)
libc.so.6 => /lib/libc.so.6 (0x00007ffc0a733000)
/lib/ld-linux-x86-64.so.2 (0x00007ffc0b023000)
When starting the following error occurs: "Error opening terminal: linux" I think something goes wrong with the output and Dialog assumes an full Linux system and not busybox, but I didn't find a solution.
Did anybody tried something similar and might have a guess whats wrong there?
One more question... Dialog output will be stored in a file (at least I didn't know a way how to pipe the output directly to cryptsetupt) and I am a bit curios if this is safe? But I think it is ok because the initramfs is stored on the RAM and not on the harddrive and if someone gets access to the RAM of the computer while it's running the system is compromised anyway or I am wrong in some point?
So thank your for any comments.
Last edited by silentsnake (2012-02-23 22:21:53)

Early boot uses /dev/console, which seems to be incapable of supporting the ioctls that ncurses relies on.

Similar Messages

  • I just statred Flash CC for the first time and it seems that the text within the pop-up window (dialog box) is mis-aligned and not allowing me access to the command buttons, nor all the text. (ie: the NEW Template Box, can't see but 2/3 of the content)

    I just statred Flash CC for the first time and it seems that the text within the pop-up window (dialog box) is mis-aligned and not allowing me access to the command buttons, nor all the text. (ie: the NEW Template Box, can't see but 2/3 of the content) is there a fix to this problem? using 8.1, Monitor is a high res.2560x1440.

    Another View.
    the GUI is so hard to read (so small) I enlarge my Ps UI by the instructions below...which helped a lot.

  • Can no longer do Cmd N within the Save As dialog window

    Hey guys
    For some reason I haven't been able to make new folders within the Save As dialog window by pressing Command N after installing Leopard, I have to manually click the New Folder button. Were commands changed? Is it a bug? I would appreciate if someone can tell me how to get this command back.
    Thank you

    Glad to hear you aren't crazy, but apparently some programmer somewhere was. I always use the button when I'm in Save as to create a new folder, something I do rarely, so I assumed it worked the way it did everywhere else, and, of course when I tried it here in Leopard it did work the way I assumed it ought to. Evidently there was an, umm, how to put this nicely....interface inconsistency (that sounds polite, I think) that was corrected in Leopard. There, I'm sure the original programmer won't be offended. Not to mention his boss, or whoever is supposed to be in charge of Human Interface Guidelines Compliance issues. Whoever it is seems to take frequent vacations....
    Francine
    Francine
    Schwieder

  • How to cycle thru blend modes within the Layer Style dialog??

    Hopefully, we all know you can use the Shift key and + or - to cycle through blend modes in the layers panel, as well as in various tools (like the Gradient tool or the Brush tool). A great way to quickly preview your blending options.
    But what about within the Layer Style dialog? This seems to the only situation where this shortcut does not work. Is there another shortcut or workaround that can be used here?
    I'm using Photoshop CS2 (on a Mac).
    Thanks,
    Doug D.

    That's a good point.
    I guess that Multiply (for Shadow) and Screen (for Glow) are really the "go to" blends for these effects, and including any other options beyond those is all just gravy.
    I'm just so addicted to using the Shift +/- shortcut and really like previewing blending changes that way... (But it would create a conflict within Bevel and Emboss, as you suggest.)

  • Text wrap for a paragraph: How to define the width of a Text box /  active text area? I simply need a longish text to wrap within the frame!

    Hello, I've been searching for a good while in the forums now, but have found no solution or real mention of the problem – I hope some of you can help.
    I want to very simply layout a text between scenes, a slightly longer text that wraps within the frame margins. Here's an example of how I want it to look:
    Now, I couldn't for the life of me get the Custom Text to behave like that, as there are no parameters to set for the width of the text area. The Text Size, yes, along with the Tracking, Baseline and all that, but the width of the text box, no. The above was created by customizing one of the other Text Generator presets that happened to be left aligned.
    However, this preset has a fade in/fade out transition, which I do not want. There's no way to remove this transition as it seems integrated into the Text Generator (meaning they are not really presets, but separate kinds of Text objects? Very silly.)
    So I am asking you: Is there any way to get the Custom Text generator to behave like that? Just a text paragraph as above. Below you'll see all I can manage with the diffferent Custom Text parameters. Any kind of repositioning and resizing of the text just changes the position and size of the frame – but the actual text items are just cropped off where they extend out of that frame. Apparently the bounding box for the text is just some default length, and I can't find any way to adjust the width. See below my different attempts.
    The same text pasted into a Custom Text generator clearly extends outside the frame:
    Here Transform just moves – or resizes – the video frame that the Text Box exists inside:
    The Crop gives similar results, and of course Distort doesn't get me closer to what I need, either. There should be simply a Text Box Width parameter to set somewhere, but if it exists they have hidden it very well. How do you do it?
    Thanks for any help, this is a silly problem, but one of now many trivial problems that amount to me growing quite dissatisfied with FCPX. Hopefully I've just overlooked something.
    All the best,
    Thomas

    Thomas...same kind of crap here.
    I used Custom Text - entered a sentence, hit return, entered another.
    Set to 72 pt.
    The default alignment is centred - I want left aligned text...the text start point stays at the centre of frame and the sentence runs off the edge of the bounding box.
    There is no settings in the Text or Title inspector dialog to correct that!
    Using Transform will not sort it!

  • Adding a domain user to the admin role within the local user management breaks all metro apps for all users!!

    Hi,
    I have posted this in another large thread under the "Windows 8 General" group but have not had any appropriate feedback from MS.
    After hours of testing and working with other users I have managed to isolate a simple situation that breaks all metro ui applications within Windows 8 for all users on the machine. Here are my exact steps and notes.
    Before continuing if you are running Avast then your solution may be to turn of the behaviour shield functionality as this also breaks metro apps. This is NOT the problem we are having!
    I have performed 3 cleans installs after isolating the problem and am able to reproduce the issue every time using the same steps on two different machines. 
    First thing to say is that for us it has nothing to do with simply joining the domain, domain/group policies nor does it appear to have anything to do with the software we installed, the problem here is much more simple but the result is pretty terrible.
    Here are my exact steps of what I did to reproduce our problem:
    Complete format of HDD in preperation for a clean install
    Clean install performed
    Set up the machine initially with a local account
    Test metro apps - all working fine
    Open control panel from the desktop, click on System, change the system to join the domain, click reboot
    Log into the system using my domain account
    Test metro apps - all working fine
    Here's were the problem starts. I need my domain account to have admin rights on the local machine so I can install programs without the IT men having to come over and enter their password every 5 mins.
    I go to control panel via the desktop and click on User Accounts. From with here I then click on "Manage User Accounts". This requires the IT guys to enter their details to give me access to such functionality. This is fine
    In the dialog box that opens I can only see the local user that was initially created during setup. The "Group" for this local account shows as "Administrators" - Image included below (important to note that metro apps are working at this point)
    I click add and then add my domain account - also giving it administrator access
    Sign off or reboot to ensure the new security is applied
    Sign back in to the domain account
    Test metro - ALL BROKEN
    Sign out
    Sign in as local account
    Test Metro - NOW ALL BROKEN FOR THIS USER ALSO
    So as soon as I add my domain account to the local user accounts and set it as admin it breaks all metro apps for all users. This is on a totally clean install with nothing at all installed other than the OS.
    Annoyingly if I go back and change the domain account to a standard user or if I totally remove the domain account from the local account management system the problem does not go away for either user. basically it is now permanently broken. The only fix I
    could fathom was a full re install and not giving the domain user admin access to the local  machine.
    Screen one - this is the local user accounts window AFTER joining the domain and logging in with my domain account (All metro apps working at this point)
    Screen 2: User accounts AFTER joining the domain and AFTER adding domain account to local user management (METRO BROKEN)
    I have isolated my machine from all group policies so nothing like that is affecting me. Users I have spoken to in different companies have policies that automatically add users to the local user management. This means that metro apps break as
    soon as they join the domain which leads them to wrongly think it is group policies causing the error. Once they isolate themselves from this they can reproduce following my steps.
    Thanks

    Hi Juke,
    Thank you for the response and apologies for the delay in getting back to you. My machine was running a long task so I couldn't try your suggested solution.
    I had already tried running the registry merge suggested at the top of the thread to no avail. I had not tried deleting the OLE key totally so I did that and the problem still exists. I will post all the errors I see in event viewer below. For
    your info, since posting my initial comment I have sent out my steps to 7 different people and we can all reproduce the problem. This comes to 10 different machines (3 of them mine then the other guys) in 3 different businesses / domains. We see the same errors
    in event viewer.
    Under "Windows Logs" --> "Application" : I get two separate error events the first reads "Activation of app winstore_cw5n1h2txyewy!Windows.Store failed with error: The app didn't start. See the Microsoft-Windows-TWinUI/Operational log for additional
    information." The second arrives in the log about 15 seconds after the first and reads "App winstore_cw5n1h2txyewy!Windows.Store did not launch within its allotted time."
    Under "Windows Logs" --> "System" : I get one error that reads "The server Windows.Store did not register with DCOM within the required timeout."
    Under "Applications And Services Logs" --> "Microsoft" -->  "Windows" --> "Apps" --> "Microsoft-Windows-TWinUI/Operational" : I get one error that reads "Activation of the app winstore_cw5n1h2txyewy!Windows.Store for the
    Windows.Launch contract failed with error: The app didn't start."
    If you require any further information just let me know and I will provide as much as I can.
    Thanks

  • Cannot edit text sufficiently within the Photo E-mail service (Elements 11)

    Greetings to all, a little help required please....
    Just purchased Elements 11 - excellent product at the price and am having a great deal of fun using it.
    One frustrating flaw within the Photo E-mail service....
    I've been using the Adobe e-mail service and it sends e-mail just fine having set up the account as required. 
    Each new e-mail appears with the text "Here are the files I want to share with you."
    Now I'd like to replace that with some different text.  I can delete it and replace it on the first editing page, and it stays there after I click 'Next' to the following 'Customise Layout' section.
    Clicking on 'Next' after this page, we have the final e-mail page, and the text has reverted back to 'Here are the files I want to share with you' again......
    I can delete it again, but cannot type in any further text anywhere on that screen.
    Any help on this??
    Shame, because the programme generally is superb.  Have transformed a number of pics already, and it would be nice to use the e-mail prog that's built in as I'd like to use it, adding text as required.  Otherwise, why have all the font and layout choices available if not??

    I tried the same and its changing at my side.
    Try to reset you preferences :
    Open PSE just to the Welcome Screen and press Ctrl + Alt + Shift (Mac: Cmd + Opt + Shift) and keep pressing.
    Click on organizer from the Welcome Screen but keep pressing the keyboard keys - don't let up.
    You will get a little dialog box asking if you want to delete the settings file. Click "Yes."  You can let go of the keyboard keys now. 
    This will rebuild the file for you and often solves the issue.
    Try to send the email again.
    Thanks
    Harshit

  • How can i determine the working path within the jdeveloper9 project?

    hello
    my directory structure as following:
    D:\myjava\testWorkspace
    D:\myjava\testWorkspace\Project1
    D:\myjava\testWorkspace\Project1\src
    D:\myjava\testWorkspace\Project1\public_html
    D:\myjava\testWorkspace\Project1\classes
    in my program,i have following code block:
    File file = new File("D:/myjava/testWorkspace/Project1/catalog.xml");
    InputSource src = new InputSource(new FileInputStream(file));
    SaxCatalogUnmarshaller saxUms = new SaxCatalogUnmarshaller();
    XMLReader rdr = XMLReaderFactory.
    createXMLReader("org.apache.xerces.parsers.SAXParser");
    rdr.setContentHandler(saxUms);
    as you can see,i must specify the absolute file name within the File class constructor,i want to use the relative file path,but it don't work.
    i wonder where i should put the "catalog.xml" file and how to specify its path?
    thanks

    You can specify the working directory for your program in the Project Settings dialog, on the Runner panel. The text field is labeled "Run Directory".
    -Liz

  • How to refer to enclosing instance from within the member class?

    Hi
    How to refer to the enclosing instance from within the member class?
    I have the following code :
    import java.awt.*;
    import java.awt.event.*;
    public class MyDialog extends Dialog
         public MyDialog(Frame fr,boolean modal)
              super(fr,modal);
              addWindowListener(new MyWindowAdapter());
         public void paint(Graphics g)
              g.drawString("Modal Dialogs are sometimes needed...",10,10);
         class MyWindowAdapter extends WindowAdapter
              public void windowClosing(WindowEvent evt)
                   //MyDialog.close(); // is this right?
    In the above code, how can I call the "close()" method of the "Dialog" class (which is the enclosing class) from the inner class?
    Thanks in advance.
    Senthil.

    Hi Senthil,
    You can directly call the outer class method. Otherwise use the following way MyDialog.this.close(); (But there is no close() method in Dialog!!)
    If this is not you expected, give me more details about problem.
    (Siva E.)

  • The server {3EB3C877-1F16-487C-9050-104DBCD66683} did not register with DCOM within the required timeout

    Windows Server 2012 becomes slow and unresponsive, event logs show DCOM errors in event logs. After server reboot server works normally.
    Log Name:      System
    Source:        Microsoft-Windows-DistributedCOM
    Date:          10/28/2014 9:06:32 AM
    Event ID:      10010
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          NETWORK SERVICE
    Computer:      ServerName
    Description:
    The server {1F87137D-0E7C-44D5-8C73-4EFFB68962F2} did not register with DCOM within the required timeout.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-DistributedCOM" Guid="{1B562E86-B7AA-4131-BADC-B6F3A001407E}" EventSourceName="DCOM" />
        <EventID Qualifiers="0">10010</EventID>
        <Version>0</Version>
        <Level>2</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8080000000000000</Keywords>
        <TimeCreated SystemTime="2014-10-28T13:06:32.743836700Z" />
        <EventRecordID>165767</EventRecordID>
        <Correlation />
        <Execution ProcessID="760" ThreadID="5560" />
        <Channel>System</Channel>
        <Computer>ServerName</Computer>
        <Security UserID="S-1-5-20" />
      </System>
      <EventData>
        <Data Name="param1">{1F87137D-0E7C-44D5-8C73-4EFFB68962F2}</Data>
      </EventData>
    </Event>

    Hi Avinash,
    If this issue occurs again, please follow steps below to troubleshoot it,
    Use the GUID in the error message to find what application it is.
    Using Regedit, navigate to the following registry value:
    HKEY_CLASSES_ROOT\CLSID\clsid value\LocalServer32. The clsid value is the information displayed in the message. Such as, {3EB3C877-1F16-487C-9050-104DBCD66683}
    In the right pane, double-click
    Default. The Edit String dialog box is displayed. Leave this dialog box open.
    Click
    Start, and then click This PC.
    Using the information displayed in the
    Value data box of the Edit String dialog box, navigate to the program.
    Right-click the program name, and then click
    Properties. The Properties dialog box for the program is displayed.
    To determine who the vendor is for this program, refer to the
    Version tab.
    If you can’t find the file in the corresponding path, please replace with a good file.
    Check if the related service have started. Stop and try to restart it.
    If you have 3<sup>rd</sup> party applications, please disable it temporary, to see if this issue was caused by them.
    For more details, please refer to links below, it provides more possible causes about event ID 10010.
    DistributedCOM Error ID 10010
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/77b1db1d-f186-4515-8f7d-2241942eb9b7/distributedcom-error-id-10010?forum=winservergen
    Best Regards,
    Tina

  • The server {4D8E7D87-0103-42F6-BE82-598C7E90A42C} did not register with DCOM within the required tim

    hello all.....
    when i try to convert .indd file to PDF file in C# , i got the following error
    The server {4D8E7D87-0103-42F6-BE82-598C7E90A42C} did not register with DCOM within the required timeout.
    just 1 day ago i installed adobe indesign cs4 in my system.
    do i need to install anything else???????
    please let me know.
    Thanks in advance.

    Hi Avinash,
    If this issue occurs again, please follow steps below to troubleshoot it,
    Use the GUID in the error message to find what application it is.
    Using Regedit, navigate to the following registry value:
    HKEY_CLASSES_ROOT\CLSID\clsid value\LocalServer32. The clsid value is the information displayed in the message. Such as, {3EB3C877-1F16-487C-9050-104DBCD66683}
    In the right pane, double-click
    Default. The Edit String dialog box is displayed. Leave this dialog box open.
    Click
    Start, and then click This PC.
    Using the information displayed in the
    Value data box of the Edit String dialog box, navigate to the program.
    Right-click the program name, and then click
    Properties. The Properties dialog box for the program is displayed.
    To determine who the vendor is for this program, refer to the
    Version tab.
    If you can’t find the file in the corresponding path, please replace with a good file.
    Check if the related service have started. Stop and try to restart it.
    If you have 3<sup>rd</sup> party applications, please disable it temporary, to see if this issue was caused by them.
    For more details, please refer to links below, it provides more possible causes about event ID 10010.
    DistributedCOM Error ID 10010
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/77b1db1d-f186-4515-8f7d-2241942eb9b7/distributedcom-error-id-10010?forum=winservergen
    Best Regards,
    Tina

  • Mss reports - add module pool (dialog) to the list

    Hi experts,
    I need to add new reports to MSS reporting.
    Is it possible to add module pool (dialog) to the MSS reports list?
    I got an error when executing the program " no object stored within selected period".
    The portal seems like it cannot trigger the data from backend.
    Is it related to dialog program that we use?
    What is the best solution because we need the manager to choose from dropdown button through the MSS reports.
    Rgds,
    Nanie Arianie

    Solved
    Program error

  • The buttons in main the vi get locked after opening a vi reference in a subpanel and using buttons within the subpanel.

    I am trying to open a reference to a vi in the subpanel of the main vi. However after the vi opens in the subpanel and after pressing a few buttons in the subpanel the buttons in the main vi get locked, i.e. I can't even close the main vi or control anything else. Is there any way how I can avoid this happening?

    > The buttons in main the vi get locked after opening a vi reference in
    > a subpanel and using buttons within the subpanel.
    >
    > I am trying to open a reference to a vi in the subpanel of the main
    > vi. However after the vi opens in the subpanel and after pressing a
    > few buttons in the subpanel the buttons in the main vi get locked,
    > i.e. I can't even close the main vi or control anything else. Is there
    > any way how I can avoid this happening?
    This is most likely happening because in either the top or sub panel,
    there is an event structure that is queuing events, and is set to lock
    the panel until the events are handled, and because of the logic in the
    diagram, the events aren't being pulled from the queue.
    So, you have a deadlock. You are waiting
    on the panel. The panel is
    waiting on the diagram. And the diagram is waiting on something else.
    So, if there are indeed event structures involved, determine where in
    the diagram things are delaying. Also, if you do not need the panel to
    lock until the event is handled, you can change the setting in the
    events dialog on the structure. But the events will still be queued
    until the diagram starts executing.
    Greg McKaskle

  • Need to start JINI registrar instance from within the code

    HI All,
    I need to write JUnits for our app using JINI for which we need to start JINI registrar from within the code and then publish some services to it.
    Any idea how we could be starting the JINI registrar from Java Code ? Any thoughts/suggestions/pointers would be highly appreciated.
    Thanks in advance
    Vikram

    Hi Senthil,
    You can directly call the outer class method. Otherwise use the following way MyDialog.this.close(); (But there is no close() method in Dialog!!)
    If this is not you expected, give me more details about problem.
    (Siva E.)

  • Process 000004 did not confirm within the permitted time period

    Hi
    The process chain failed while activating the ODS with an error message :Process 000004 did not confirm within the permitted time period" . When repeated the failed step it went successufull. but want to know what can be the cause and steps to be taken in order to avoide this issue further.
    Thanks
    Ratan

    Hi,
    Whenever ODS activation goes there'll be some batch processes you can say as parallel processes running along with main job. Due to unavailability of resources i.e either bkgd or dialog processes soemtimes gets delayed and they gets canceled which leads to the failure of main ODS activation job...
    may be in ur scenario the same thing might have happened, so when you had repeated the step if the resources are free it will be successful.
    once chk in your system for canceled jobs, ther might be some job which relates to your process.
    rgds,

Maybe you are looking for

  • How to get past Error 2203 when re-installing PSE 10? [was: To whom it may concern]

    I have recently purchased a new computer and am trying to reload my copy of Photoshop Elements 10. Having started installation, I reached a certain point and received an error message: 2203 telling me I could not proceed as another process was locked

  • Us ipod in uk

    i am going to new york in april and wanting to buy an ipod. but i want to make sure it is compatible in uk. i'm sure it has been asked before but i couldn't find a post. thanks for any help given

  • SCCM console and CCM component Version matching after 2012 R2 upgrade

    Do you know why I am seeing two different versions of admin console after upgraded to '12 R2? I see the new version 5.0.7958.1401 when I click on about SCCM from the console. Any help would be greatly appreciated

  • Applet thing

    I've done an applet which runs perfectly on my PC. When I tried to run it on an other computer with JVM installed it only viewed gray nothingness in a browser's window. Is that JVM's difference? PC runs Java games with no problems (such as RuneScape)

  • ITunes doesn't transfer all files to IPOD

    The audibooks hat it won't add were all downloaded yesterday.