Re: [PATCH 1/9] Dracut cleanups, part 2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 11, 2009 at 04:35:00PM -0600, Victor Lowther wrote:
> On Wed, Feb 11, 2009 at 4:07 PM, Karel Zak <kzak@xxxxxxxxxx> wrote:
> > On Wed, Feb 11, 2009 at 03:46:38AM -0800, Victor Lowther wrote:
> >> +# parsing the output of ls is Bad, but until there is a better way...
> >> +read x x x x maj min x < <(ls -lH "$resume")
> >
> >  read maj min < <(stat --format="%t %T" "$resume")
> 
> Indeed, but that adds yet another executable to the initrd.

 I don't see ls(1) at any other place than here. It seems you can
 remove ls(1) and add stat(1).

 BTW (Fedora 10):

$ ls -la /bin/ls /usr/bin/stat
-rwxr-xr-x 1 root root 114400 2008-11-21 16:33 /bin/ls
-rwxr-xr-x 1 root root  56584 2008-11-21 16:33 /usr/bin/stat

$ ldd /bin/ls
        linux-vdso.so.1 =>  (0x00007fffdf9ff000)
        librt.so.1 => /lib64/librt.so.1 (0x0000003779c00000)
        libselinux.so.1 => /lib64/libselinux.so.1 (0x0000003779800000)
        libcap.so.2 => /lib64/libcap.so.2 (0x0000003782200000)
        libacl.so.1 => /lib64/libacl.so.1 (0x0000003779400000)
        libc.so.6 => /lib64/libc.so.6 (0x0000003778400000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003779000000)
        /lib64/ld-linux-x86-64.so.2 (0x0000003778000000)
        libdl.so.2 => /lib64/libdl.so.2 (0x0000003778c00000)
        libattr.so.1 => /lib64/libattr.so.1 (0x0000003783600000)

$ ldd /usr/bin/stat
        linux-vdso.so.1 =>  (0x00007fff5a1fe000)
        libselinux.so.1 => /lib64/libselinux.so.1 (0x0000003779800000)
        libc.so.6 => /lib64/libc.so.6 (0x0000003778400000)
        libdl.so.2 => /lib64/libdl.so.2 (0x0000003778c00000)
        /lib64/ld-linux-x86-64.so.2 (0x0000003778000000)


    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux