Announcement

Collapse
No announcement yet.

Is plymouth 'required'

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Is plymouth 'required'

    How much of plymouth is required if one isn't using it during boot?

    During boot of my VM 16.04, the following appears:

    /scripts/init-premount/plymouth: line 38: /sbin/plymouthd: not found
    /scripts/init-premount/plymouth: line 38: /sbin/plymouth: not found
    /dev/sda1: clean, 190183/1638400 files, 1396351/6553344 blocks
    /scripts/init-bottom/plymouth: line 18: /bin/plymouth: not found

    and I'd like to find out how/if these 'errors' can be prevented.
    Last edited by Snowhog; Dec 14, 2015, 08:29 PM.
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    #2
    none of plymouth is needed to boot; if anything you would have a meta-package missing a package, you could try disabling plymouth to see if that stops the messages
    Code:
    sudo systemctl disable plymouth
    should work if you have systemd
    Mark Your Solved Issues [SOLVED]
    (top of thread: thread tools)

    Comment


      #3
      This is what I get.
      Code:
      paul@paul-VirtualBox:~$ sudo systemctl disable plymouth
      [sudo] password for paul: 
      Synchronizing state of plymouth.service with SysV init with /lib/systemd/systemd-sysv-install...
      Executing /lib/systemd/systemd-sysv-install disable plymouth
      insserv: warning: current start runlevel(s) (empty) of script `plymouth' overrides LSB defaults (2 3 4 5).
      insserv: warning: current stop runlevel(s) (0 2 3 4 5 6) of script `plymouth' overrides LSB defaults (0 6).
      paul@paul-VirtualBox:~$
      Rebooting and these messages still appear. They are just annoying, and the boot processes isn't affected in any negative way. I would just like to know why they are appearing and how, if possible, to fix what ever is causing them to be generated.
      Last edited by Snowhog; Dec 14, 2015, 11:11 PM.
      Windows no longer obstructs my view.
      Using Kubuntu Linux since March 23, 2007.
      "It is a capital mistake to theorize before one has data." - Sherlock Holmes

      Comment


        #4
        If plymouth is not running they why are you getting errors for scripts running from the pre/post for plymouth

        have you looked at the files its pointing out? what do you find on the lines in your errors ?
        Mark Your Solved Issues [SOLVED]
        (top of thread: thread tools)

        Comment


          #5
          I don't know what is generating these outputs. I searched using locate on init-premount. This is the result, and what "isn't" in the identified locations.
          Code:
          paul@paul-VirtualBox:~$ locate init-premount
          /etc/initramfs-tools/scripts/init-premount
          /usr/share/initramfs-tools/scripts/init-premount
          /usr/share/initramfs-tools/scripts/init-premount/plymouth
          paul@paul-VirtualBox:~$ cd /etc/initramfs-tools/scripts/
          paul@paul-VirtualBox:/etc/initramfs-tools/scripts$ list
          total 48
          drwxr-xr-x 12 root root 4096 Apr 22  2015 .
          drwxr-xr-x  5 root root 4096 Oct 22 14:16 ..
          drwxr-xr-x  2 root root 4096 Apr 13  2015 init-bottom
          drwxr-xr-x  2 root root 4096 Apr 13  2015 init-premount
          drwxr-xr-x  2 root root 4096 Apr 13  2015 init-top
          drwxr-xr-x  2 root root 4096 Apr 13  2015 local-bottom
          drwxr-xr-x  2 root root 4096 Apr 13  2015 local-premount
          drwxr-xr-x  2 root root 4096 Apr 13  2015 local-top
          drwxr-xr-x  2 root root 4096 Apr 13  2015 nfs-bottom
          drwxr-xr-x  2 root root 4096 Apr 13  2015 nfs-premount
          drwxr-xr-x  2 root root 4096 Apr 13  2015 nfs-top
          drwxr-xr-x  2 root root 4096 Apr 13  2015 panic
          paul@paul-VirtualBox:/etc/initramfs-tools/scripts$ cd init-premount/
          paul@paul-VirtualBox:/etc/initramfs-tools/scripts/init-premount$ nano plymouth
          paul@paul-VirtualBox:/etc/initramfs-tools/scripts/init-premount$ list
          total 8
          drwxr-xr-x  2 root root 4096 Apr 13  2015 .
          drwxr-xr-x 12 root root 4096 Apr 22  2015 ..
          paul@paul-VirtualBox:/etc/initramfs-tools/scripts/init-premount$ list
          total 8
          drwxr-xr-x  2 root root 4096 Apr 13  2015 .
          drwxr-xr-x 12 root root 4096 Apr 22  2015 ..
          paul@paul-VirtualBox:/etc/initramfs-tools/scripts/init-premount$ cd ..
          paul@paul-VirtualBox:/etc/initramfs-tools/scripts$ cd init-bottom/
          paul@paul-VirtualBox:/etc/initramfs-tools/scripts/init-bottom$ list
          total 8
          drwxr-xr-x  2 root root 4096 Apr 13  2015 .
          drwxr-xr-x 12 root root 4096 Apr 22  2015 ..
          paul@paul-VirtualBox:/etc/initramfs-tools/scripts/init-bottom$ cd /usr/share/initramfs-tools/scripts/
          paul@paul-VirtualBox:/usr/share/initramfs-tools/scripts$ nano plymouth
          paul@paul-VirtualBox:/usr/share/initramfs-tools/scripts$ list
          total 64
          drwxr-xr-x 10 root root  4096 Dec  9 18:24 .
          drwxr-xr-x  8 root root  4096 Oct 22 13:54 ..                                                                                                         
          -rw-r--r--  1 root root 10167 Sep 19 03:50 functions                                                                                                  
          drwxr-xr-x  2 root root  4096 Dec 11 18:52 init-bottom                                                                                                
          drwxr-xr-x  2 root root  4096 Dec 11 18:52 init-premount                                                                                              
          drwxr-xr-x  2 root root  4096 Dec 11 08:43 init-top                                                                                                   
          -rw-r--r--  1 root root  5869 Sep 19 03:50 local                                                                                                      
          drwxr-xr-x  2 root root  4096 Oct 22 13:54 local-block                                                                                                
          drwxr-xr-x  2 root root  4096 Nov  5 12:39 local-bottom                                                                                               
          drwxr-xr-x  2 root root  4096 Nov  5 12:39 local-premount                                                                                             
          drwxr-xr-x  2 root root  4096 Oct 22 13:54 local-top                                                                                                  
          -rw-r--r--  1 root root  3058 Aug 17 04:24 nfs
          drwxr-xr-x  2 root root  4096 Dec 11 18:52 panic
          paul@paul-VirtualBox:/usr/share/initramfs-tools/scripts$
          Windows no longer obstructs my view.
          Using Kubuntu Linux since March 23, 2007.
          "It is a capital mistake to theorize before one has data." - Sherlock Holmes

          Comment


            #6
            The scripts are located in:
            /usr/share/initramfs-tools/scripts/init-premount/plymouth
            /usr/share/initramfs-tools/scripts/init-bottom/plymouth
            (you only listed the contents of /usr/share/initramfs-tools/scripts, not the appropriate sub-directories)

            To remove the errors, try removing the "splash" option from the kernel cmdline:
            1. edit /etc/default/grub, remove "splash" from GRUB_CMDLINE_LINUX_DEFAULT
            2. update grub with 'sudo update-grub'
            3. Just for good measure, also update the initramfs;
            'sudo update-initramfs -u'

            Comment


              #7
              Also, there is this:
              http://packages.ubuntu.com/xenial/plymouth-disabler

              I don't know what's in the pack,age or if it works, but it might point out things that call plymouth

              Sent from my VS986 using Tapatalk

              Comment


                #8
                Originally posted by kubicle View Post
                The scripts are located in:
                /usr/share/initramfs-tools/scripts/init-premount/plymouth
                /usr/share/initramfs-tools/scripts/init-bottom/plymouth
                (you only listed the contents of /usr/share/initramfs-tools/scripts, not the appropriate sub-directories)

                To remove the errors, try removing the "splash" option from the kernel cmdline:
                1. edit /etc/default/grub, remove "splash" from GRUB_CMDLINE_LINUX_DEFAULT
                2. update grub with 'sudo update-grub'
                3. Just for good measure, also update the initramfs;
                'sudo update-initramfs -u'
                I've done all three.

                paul@paul-VirtualBox:~$ cd /usr/share/initramfs-tools/scripts/init-premount/
                paul@paul-VirtualBox:/usr/share/initramfs-tools/scripts/init-premount$ list
                total 12
                drwxr-xr-x 2 root root 4096 Dec 11 18:52 .
                drwxr-xr-x 10 root root 4096 Dec 9 18:24 ..
                -rwxr-xr-x 1 root root 483 Dec 11 16:49 plymouth
                paul@paul-VirtualBox:/usr/share/initramfs-tools/scripts/init-premount$ cat plymouth
                Code:
                #!/bin/sh
                
                OPTION=FRAMEBUFFER
                PREREQ="udev"
                
                prereqs()
                {
                        echo "${PREREQ}"
                }
                
                case ${1} in
                        prereqs)
                                prereqs
                                exit 0
                                ;;
                esac
                
                SPLASH="true"
                
                for ARGUMENT in $(cat /proc/cmdline)
                do
                        case "${ARGUMENT}" in
                                splash*)
                                        SPLASH="true"
                                        ;;
                
                                nosplash*|plymouth.enable=0)
                                        SPLASH="false"
                                        ;;
                        esac
                done
                
                if [ "${SPLASH}" = "true" ]
                then                                                                                                                                                  
                        mkdir -m 0755 /run/plymouth                                                                                                                   
                        /sbin/plymouthd --mode=boot --attach-to-session --pid-file=/run/plymouth/pid                                                                  
                        /bin/plymouth --show-splash                                                                                                                   
                fi
                paul@paul-VirtualBox:/usr/share/initramfs-tools/scripts$ cd /usr/share/initramfs-tools/scripts/init-bottom/
                paul@paul-VirtualBox:/usr/share/initramfs-tools/scripts/init-bottom$ list
                total 16
                drwxr-xr-x 2 root root 4096 Dec 11 18:52 .
                drwxr-xr-x 10 root root 4096 Dec 9 18:24 ..
                -rwxr-xr-x 1 root root 166 Dec 11 16:49 plymouth
                -rwxr-xr-x 1 root root 405 Dec 10 09:56 udev
                paul@paul-VirtualBox:/usr/share/initramfs-tools/scripts/init-bottom$ cat plymouth
                Code:
                #!/bin/sh
                
                OPTION=FRAMEBUFFER
                PREREQ="udev"
                
                prereqs()
                {
                        echo "${PREREQ}"
                }
                
                case ${1} in
                        prereqs)
                                prereqs
                                exit 0
                                ;;
                esac
                
                /bin/plymouth --newroot=${rootmnt}
                paul@paul-VirtualBox:/bin$ cd /run/plymouth/
                paul@paul-VirtualBox:/run/plymouth$ list
                total 0
                drwxr-xr-x 2 root root 40 Dec 15 12:29 .
                drwxr-xr-x 25 root root 700 Dec 15 12:29 ..
                paul@paul-VirtualBox:/run/plymouth$
                paul@paul-VirtualBox:/run/plymouth$ cd /sbin
                paul@paul-VirtualBox:/sbin$ list plymouthd
                -rwxr-xr-x 1 root root 85760 Dec 11 16:49 plymouthd
                paul@paul-VirtualBox:/sbin$ cd /bin
                paul@paul-VirtualBox:/bin$ list plymouth
                -rwxr-xr-x 1 root root 35504 Dec 11 16:49 plymouth
                paul@paul-VirtualBox:$ cd /etc/default
                paul@paul-VirtualBox:/etc/default$ cat grub
                # If you change this file, run 'update-grub' afterwards to update
                # /boot/grub/grub.cfg.
                # For full documentation of the options in this file, see:
                # info -f grub -n 'Simple configuration'

                GRUB_DEFAULT=0
                #GRUB_HIDDEN_TIMEOUT=0
                GRUB_HIDDEN_TIMEOUT_QUIET=true
                GRUB_TIMEOUT=-10
                GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
                #GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
                GRUB_CMDLINE_LINUX_DEFAULT="quiet enable_mtrr_cleanup raid=noautodetect acpi_osi=Linux pcie_aspm=force"
                GRUB_CMDLINE_LINUX="noapic"

                # Uncomment to enable BadRAM filtering, modify to suit your needs
                # This works with Linux (no patch required) and with any kernel that obtains
                # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
                #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xe fefefef"

                # Uncomment to disable graphical terminal (grub-pc only)
                #GRUB_TERMINAL=console

                # The resolution used on graphical terminal
                # note that you can use only modes which your graphic card supports via VBE
                # you can see them in real GRUB with the command `vbeinfo'
                #GRUB_GFXMODE=640x480
                GRUB_GFXMODE=1600X900
                GRUB_GFXPAYLOAD_LINUX=keep

                # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
                #GRUB_DISABLE_LINUX_UUID=true

                # Uncomment to disable generation of recovery mode menu entries
                #GRUB_DISABLE_RECOVERY="true"

                # Uncomment to get a beep at grub start
                #GRUB_INIT_TUNE="480 440 1"
                paul@paul-VirtualBox:/etc/default$
                splash is not included on the GRUB_CMDLINE_LINUX_DEFAULT= line of /etc/default/grub and yet, these 'errors' still get displayed.
                Windows no longer obstructs my view.
                Using Kubuntu Linux since March 23, 2007.
                "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                Comment


                  #9
                  How about if you explicitly put "nosplash" in GRUB_CMDLINE_LINUX_DEFAULT (don't forget to update-grub)?

                  Looking at the script /usr/share/initramfs-tools/scripts/init-premount/plymouth, that should prevent the calls to plymouth in that script

                  Comment


                    #10
                    Okay, putting nosplash into the line and updating grub and rebooting results in this output during boot:

                    /scripts/init-bottom/plymouth: line 18: /bin/plymouth: not found

                    So, an improvement, but not perfect. Any other suggestions?
                    Windows no longer obstructs my view.
                    Using Kubuntu Linux since March 23, 2007.
                    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                    Comment


                      #11
                      Originally posted by Snowhog View Post
                      Okay, putting nosplash into the line and updating grub and rebooting results in this output during boot:

                      /scripts/init-bottom/plymouth: line 18: /bin/plymouth: not found
                      /etc/initramfs-tools/conf.d/splash
                      So, an improvement, but not perfect. Any other suggestions?
                      That error comes from the other script (/usr/share/initramfs-tools/scripts/init-bottom/plymouth) which unfortunately doesn't include a check for splash/nosplash.

                      A tad hackish, but you could just comment out (#) the line that calls /bin/plymouth in that script (the last line), but you probably need to update your initramfs afterwards (and you likely need to redo the edit after upgrades of the "plymouth" package).

                      Comment


                        #12
                        bug report
                        https://bugs.launchpad.net/ubuntu/+s...h/+bug/1578372
                        If you are still affected, please use 'it affects me" option on launchpad.

                        Comment

                        Working...
                        X