Plymouthd on BeagleBone Black initramfs fails with “Could not setup basic operating environment”

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
0
down vote

favorite












I setup an initramfs BeagleBone Black with the goal of using the open source Plymouth package to display a boot splash early on in the boot on the BeagleBone's /dev/fb0 HDMI output.



I am trying to configure it according to these instructions:
https://wiki.ubuntu.com/Plymouth



When I boot, the initramfs runs the shell and I manually run plymouthd. It immediately fails with the following error:



sh-4.4# export FRAMEBUFFER=y
sh-4.4# env
ACTION=add
OLDPWD=/
PWD=/
HOME=/
FRAMEBUFFER=y
TERM=linux
SHLVL=1
_=/usr/bin/env
sh-4.4# /sbin/plymouthd --mode=boot
plymouthd: could not setup basic operating environment: No such file or directory


My initramfs contains the following plymouth related files:



sh-4.4# find . -name plymouth*
./etc/plymouth
./etc/plymouth/plymouthd.conf
./sbin/plymouthd
./bin/plymouth
./var/spool/plymouth
./var/lib/plymouth
./usr/share/plymouth
./usr/share/plymouth/plymouthd.defaults
./usr/sbin/plymouth-set-default-theme
./usr/lib/plymouth
./usr/lib/dracut/modules.d/50plymouth/plymouth-pretrigger.sh
./usr/lib/dracut/modules.d/50plymouth/plymouth-populate-initrd.sh
./usr/lib/dracut/modules.d/50plymouth/plymouth-newroot.sh
./usr/lib/dracut/modules.d/50plymouth/plymouth-emergency.s


The source code contains the print message here:



/* before do anything we need to make sure we have a working
* environment.
*/
if (!initialize_environment (&state))
if (errno == 0)
if (daemon_handle != NULL)
ply_detach_daemon (daemon_handle, 0);
return 0;


ply_error ("plymouthd: could not setup basic operating environment: %m");
if (daemon_handle != NULL)
ply_detach_daemon (daemon_handle, EX_OSERR);
return EX_OSERR;



Which relates to:



static bool
initialize_environment (state_t *state)

ply_trace ("initializing minimal work environment");

if (!get_kernel_command_line (state))
return false;

if (!state->default_tty)
if (getenv ("DISPLAY") != NULL && access (PLYMOUTH_PLUGIN_PATH "renderers/x11.so", F_OK) == 0)
state->default_tty = "/dev/tty";
if (!state->default_tty)
if (state->mode == PLY_MODE_SHUTDOWN)
state->default_tty = SHUTDOWN_TTY;
else
state->default_tty = BOOT_TTY;

ply_trace ("checking if '%s' exists", state->default_tty);
if (!ply_character_device_exists (state->default_tty))
ply_trace ("nope, forcing details mode");
state->should_force_details = true;

state->default_tty = find_fallback_tty (state);
ply_trace ("going to go with '%s'", state->default_tty);



check_verbosity (state);
check_logging (state);

ply_trace ("source built on %s", __DATE__);

state->keystroke_triggers = ply_list_new ();
state->entry_triggers = ply_list_new ();
state->entry_buffer = ply_buffer_new ();
state->messages = ply_list_new ();

if (!ply_is_tracing ())
redirect_standard_io_to_dev_null ();

ply_trace ("Making sure " PLYMOUTH_RUNTIME_DIR " exists");
if (!ply_create_directory (PLYMOUTH_RUNTIME_DIR))
ply_trace ("could not create " PLYMOUTH_RUNTIME_DIR ": %m");

ply_trace ("initialized minimal work environment");
return true;



How can I make this work? Thanks.







share|improve this question



















  • Hmm, where does %m come from that gets set to "No such file or directory"? Could it be that it tries to read the kernel command line from procfs, which isn't mounted yet?
    – TBR
    Jul 20 at 16:46
















up vote
0
down vote

favorite












I setup an initramfs BeagleBone Black with the goal of using the open source Plymouth package to display a boot splash early on in the boot on the BeagleBone's /dev/fb0 HDMI output.



I am trying to configure it according to these instructions:
https://wiki.ubuntu.com/Plymouth



When I boot, the initramfs runs the shell and I manually run plymouthd. It immediately fails with the following error:



sh-4.4# export FRAMEBUFFER=y
sh-4.4# env
ACTION=add
OLDPWD=/
PWD=/
HOME=/
FRAMEBUFFER=y
TERM=linux
SHLVL=1
_=/usr/bin/env
sh-4.4# /sbin/plymouthd --mode=boot
plymouthd: could not setup basic operating environment: No such file or directory


My initramfs contains the following plymouth related files:



sh-4.4# find . -name plymouth*
./etc/plymouth
./etc/plymouth/plymouthd.conf
./sbin/plymouthd
./bin/plymouth
./var/spool/plymouth
./var/lib/plymouth
./usr/share/plymouth
./usr/share/plymouth/plymouthd.defaults
./usr/sbin/plymouth-set-default-theme
./usr/lib/plymouth
./usr/lib/dracut/modules.d/50plymouth/plymouth-pretrigger.sh
./usr/lib/dracut/modules.d/50plymouth/plymouth-populate-initrd.sh
./usr/lib/dracut/modules.d/50plymouth/plymouth-newroot.sh
./usr/lib/dracut/modules.d/50plymouth/plymouth-emergency.s


The source code contains the print message here:



/* before do anything we need to make sure we have a working
* environment.
*/
if (!initialize_environment (&state))
if (errno == 0)
if (daemon_handle != NULL)
ply_detach_daemon (daemon_handle, 0);
return 0;


ply_error ("plymouthd: could not setup basic operating environment: %m");
if (daemon_handle != NULL)
ply_detach_daemon (daemon_handle, EX_OSERR);
return EX_OSERR;



Which relates to:



static bool
initialize_environment (state_t *state)

ply_trace ("initializing minimal work environment");

if (!get_kernel_command_line (state))
return false;

if (!state->default_tty)
if (getenv ("DISPLAY") != NULL && access (PLYMOUTH_PLUGIN_PATH "renderers/x11.so", F_OK) == 0)
state->default_tty = "/dev/tty";
if (!state->default_tty)
if (state->mode == PLY_MODE_SHUTDOWN)
state->default_tty = SHUTDOWN_TTY;
else
state->default_tty = BOOT_TTY;

ply_trace ("checking if '%s' exists", state->default_tty);
if (!ply_character_device_exists (state->default_tty))
ply_trace ("nope, forcing details mode");
state->should_force_details = true;

state->default_tty = find_fallback_tty (state);
ply_trace ("going to go with '%s'", state->default_tty);



check_verbosity (state);
check_logging (state);

ply_trace ("source built on %s", __DATE__);

state->keystroke_triggers = ply_list_new ();
state->entry_triggers = ply_list_new ();
state->entry_buffer = ply_buffer_new ();
state->messages = ply_list_new ();

if (!ply_is_tracing ())
redirect_standard_io_to_dev_null ();

ply_trace ("Making sure " PLYMOUTH_RUNTIME_DIR " exists");
if (!ply_create_directory (PLYMOUTH_RUNTIME_DIR))
ply_trace ("could not create " PLYMOUTH_RUNTIME_DIR ": %m");

ply_trace ("initialized minimal work environment");
return true;



How can I make this work? Thanks.







share|improve this question



















  • Hmm, where does %m come from that gets set to "No such file or directory"? Could it be that it tries to read the kernel command line from procfs, which isn't mounted yet?
    – TBR
    Jul 20 at 16:46












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I setup an initramfs BeagleBone Black with the goal of using the open source Plymouth package to display a boot splash early on in the boot on the BeagleBone's /dev/fb0 HDMI output.



I am trying to configure it according to these instructions:
https://wiki.ubuntu.com/Plymouth



When I boot, the initramfs runs the shell and I manually run plymouthd. It immediately fails with the following error:



sh-4.4# export FRAMEBUFFER=y
sh-4.4# env
ACTION=add
OLDPWD=/
PWD=/
HOME=/
FRAMEBUFFER=y
TERM=linux
SHLVL=1
_=/usr/bin/env
sh-4.4# /sbin/plymouthd --mode=boot
plymouthd: could not setup basic operating environment: No such file or directory


My initramfs contains the following plymouth related files:



sh-4.4# find . -name plymouth*
./etc/plymouth
./etc/plymouth/plymouthd.conf
./sbin/plymouthd
./bin/plymouth
./var/spool/plymouth
./var/lib/plymouth
./usr/share/plymouth
./usr/share/plymouth/plymouthd.defaults
./usr/sbin/plymouth-set-default-theme
./usr/lib/plymouth
./usr/lib/dracut/modules.d/50plymouth/plymouth-pretrigger.sh
./usr/lib/dracut/modules.d/50plymouth/plymouth-populate-initrd.sh
./usr/lib/dracut/modules.d/50plymouth/plymouth-newroot.sh
./usr/lib/dracut/modules.d/50plymouth/plymouth-emergency.s


The source code contains the print message here:



/* before do anything we need to make sure we have a working
* environment.
*/
if (!initialize_environment (&state))
if (errno == 0)
if (daemon_handle != NULL)
ply_detach_daemon (daemon_handle, 0);
return 0;


ply_error ("plymouthd: could not setup basic operating environment: %m");
if (daemon_handle != NULL)
ply_detach_daemon (daemon_handle, EX_OSERR);
return EX_OSERR;



Which relates to:



static bool
initialize_environment (state_t *state)

ply_trace ("initializing minimal work environment");

if (!get_kernel_command_line (state))
return false;

if (!state->default_tty)
if (getenv ("DISPLAY") != NULL && access (PLYMOUTH_PLUGIN_PATH "renderers/x11.so", F_OK) == 0)
state->default_tty = "/dev/tty";
if (!state->default_tty)
if (state->mode == PLY_MODE_SHUTDOWN)
state->default_tty = SHUTDOWN_TTY;
else
state->default_tty = BOOT_TTY;

ply_trace ("checking if '%s' exists", state->default_tty);
if (!ply_character_device_exists (state->default_tty))
ply_trace ("nope, forcing details mode");
state->should_force_details = true;

state->default_tty = find_fallback_tty (state);
ply_trace ("going to go with '%s'", state->default_tty);



check_verbosity (state);
check_logging (state);

ply_trace ("source built on %s", __DATE__);

state->keystroke_triggers = ply_list_new ();
state->entry_triggers = ply_list_new ();
state->entry_buffer = ply_buffer_new ();
state->messages = ply_list_new ();

if (!ply_is_tracing ())
redirect_standard_io_to_dev_null ();

ply_trace ("Making sure " PLYMOUTH_RUNTIME_DIR " exists");
if (!ply_create_directory (PLYMOUTH_RUNTIME_DIR))
ply_trace ("could not create " PLYMOUTH_RUNTIME_DIR ": %m");

ply_trace ("initialized minimal work environment");
return true;



How can I make this work? Thanks.







share|improve this question











I setup an initramfs BeagleBone Black with the goal of using the open source Plymouth package to display a boot splash early on in the boot on the BeagleBone's /dev/fb0 HDMI output.



I am trying to configure it according to these instructions:
https://wiki.ubuntu.com/Plymouth



When I boot, the initramfs runs the shell and I manually run plymouthd. It immediately fails with the following error:



sh-4.4# export FRAMEBUFFER=y
sh-4.4# env
ACTION=add
OLDPWD=/
PWD=/
HOME=/
FRAMEBUFFER=y
TERM=linux
SHLVL=1
_=/usr/bin/env
sh-4.4# /sbin/plymouthd --mode=boot
plymouthd: could not setup basic operating environment: No such file or directory


My initramfs contains the following plymouth related files:



sh-4.4# find . -name plymouth*
./etc/plymouth
./etc/plymouth/plymouthd.conf
./sbin/plymouthd
./bin/plymouth
./var/spool/plymouth
./var/lib/plymouth
./usr/share/plymouth
./usr/share/plymouth/plymouthd.defaults
./usr/sbin/plymouth-set-default-theme
./usr/lib/plymouth
./usr/lib/dracut/modules.d/50plymouth/plymouth-pretrigger.sh
./usr/lib/dracut/modules.d/50plymouth/plymouth-populate-initrd.sh
./usr/lib/dracut/modules.d/50plymouth/plymouth-newroot.sh
./usr/lib/dracut/modules.d/50plymouth/plymouth-emergency.s


The source code contains the print message here:



/* before do anything we need to make sure we have a working
* environment.
*/
if (!initialize_environment (&state))
if (errno == 0)
if (daemon_handle != NULL)
ply_detach_daemon (daemon_handle, 0);
return 0;


ply_error ("plymouthd: could not setup basic operating environment: %m");
if (daemon_handle != NULL)
ply_detach_daemon (daemon_handle, EX_OSERR);
return EX_OSERR;



Which relates to:



static bool
initialize_environment (state_t *state)

ply_trace ("initializing minimal work environment");

if (!get_kernel_command_line (state))
return false;

if (!state->default_tty)
if (getenv ("DISPLAY") != NULL && access (PLYMOUTH_PLUGIN_PATH "renderers/x11.so", F_OK) == 0)
state->default_tty = "/dev/tty";
if (!state->default_tty)
if (state->mode == PLY_MODE_SHUTDOWN)
state->default_tty = SHUTDOWN_TTY;
else
state->default_tty = BOOT_TTY;

ply_trace ("checking if '%s' exists", state->default_tty);
if (!ply_character_device_exists (state->default_tty))
ply_trace ("nope, forcing details mode");
state->should_force_details = true;

state->default_tty = find_fallback_tty (state);
ply_trace ("going to go with '%s'", state->default_tty);



check_verbosity (state);
check_logging (state);

ply_trace ("source built on %s", __DATE__);

state->keystroke_triggers = ply_list_new ();
state->entry_triggers = ply_list_new ();
state->entry_buffer = ply_buffer_new ();
state->messages = ply_list_new ();

if (!ply_is_tracing ())
redirect_standard_io_to_dev_null ();

ply_trace ("Making sure " PLYMOUTH_RUNTIME_DIR " exists");
if (!ply_create_directory (PLYMOUTH_RUNTIME_DIR))
ply_trace ("could not create " PLYMOUTH_RUNTIME_DIR ": %m");

ply_trace ("initialized minimal work environment");
return true;



How can I make this work? Thanks.









share|improve this question










share|improve this question




share|improve this question









asked Jul 19 at 19:43









PhilBot

104214




104214











  • Hmm, where does %m come from that gets set to "No such file or directory"? Could it be that it tries to read the kernel command line from procfs, which isn't mounted yet?
    – TBR
    Jul 20 at 16:46
















  • Hmm, where does %m come from that gets set to "No such file or directory"? Could it be that it tries to read the kernel command line from procfs, which isn't mounted yet?
    – TBR
    Jul 20 at 16:46















Hmm, where does %m come from that gets set to "No such file or directory"? Could it be that it tries to read the kernel command line from procfs, which isn't mounted yet?
– TBR
Jul 20 at 16:46




Hmm, where does %m come from that gets set to "No such file or directory"? Could it be that it tries to read the kernel command line from procfs, which isn't mounted yet?
– TBR
Jul 20 at 16:46















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f457289%2fplymouthd-on-beaglebone-black-initramfs-fails-with-could-not-setup-basic-operat%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f457289%2fplymouthd-on-beaglebone-black-initramfs-fails-with-could-not-setup-basic-operat%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay