Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 367305 - sys-apps/openrc: "rc-update show" displays a non-alphabetized list
Summary: sys-apps/openrc: "rc-update show" displays a non-alphabetized list
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-14 22:41 UTC by Mike Thompson
Modified: 2011-05-28 16:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Thompson 2011-05-14 22:41:01 UTC
The "show" option of rc-update command from baselayout-1 has a very useful feature:  it displays the list of entries alphabetically.  This makes it easier to find the name of the service in the list, which may get to be pretty large.  The new rc-update command has lost this feature:  the list (which is even longer because baselayout-2 defines more services) shows up in a random order.

Reproducible: Always

Steps to Reproduce:
1. Enter the command "rc-update show" as root.
Actual Results:  
            killprocs |                                       shutdown
             netmount |                     default
          consolefont |        boot
                devfs |             sysinit
               procfs |        boot
                  gpm |                     default
              hwclock |        boot
              keymaps |        boot
                dmesg |             sysinit
       udev-postmount |                     default
         termencoding |        boot
                local |                     default nonetwork
              urandom |        boot
              modules |        boot
             hostname |        boot
                 swap |        boot
                 mtab |        boot
             bootmisc |        boot
                 udev |             sysinit
            savecache |                                       shutdown
               sysctl |        boot
           localmount |        boot
               net.lo |        boot
                 root |        boot
             mount-ro |                                       shutdown
                 fsck |        boot


Expected Results:  
             bootmisc |        boot
          consolefont |        boot
                devfs |             sysinit
                dmesg |             sysinit
                 fsck |        boot
                  gpm |                     default
             hostname |        boot
              hwclock |        boot
              keymaps |        boot
            killprocs |                                       shutdown
                local |                     default nonetwork
           localmount |        boot
              modules |        boot
             mount-ro |                                       shutdown
                 mtab |        boot
               net.lo |        boot
             netmount |                     default
               procfs |        boot
                 root |        boot
            savecache |                                       shutdown
                 swap |        boot
               sysctl |        boot
         termencoding |        boot
                 udev |             sysinit
       udev-postmount |                     default
              urandom |        boot


Filtering through sort -b is a workaround, but, given the simplicity of the older version, is an annoyance.
Comment 1 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-05-22 01:56:31 UTC
When I had to look yesterday at a box that wasn't starting up after the migration, using a live-cd, I thought to myself I should report this.

Mike,

thanks for doing it.
Comment 2 SpanKY gentoo-dev 2011-05-28 16:12:35 UTC
baselayout-1 itself doesnt do sorting.  it uses `ls` which happens to sort its output by default.

http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commitdiff;h=11d8b70d74b339777c7849dc3688244e85587501