Harald Hoyer
b208aad51c
lsinitrd.sh: make use of the skipcpio utility
...
With the skipcpio utility, the whole contents of an initramfs with an
early cpio image can be displayed.
11 years ago
Harald Hoyer
ae01bd1808
lsinitrd.sh: also print out the arguments used to create the initramfs
11 years ago
Koen Kooi
149965bd13
dracut-initramfs-restore,lsinitrd: add LZ4 support
...
Dracut claims to have LZ4 support, but trying to use it will result in an xzcat failure at the end due to missing CAT support.
The lz4 command chokes on '--', so abstract that out into the CAT select.
Something similar will need to be done for LZO.
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
11 years ago
Harald Hoyer
861d9430c0
lsinitrd.sh: fixed modules.txt path
12 years ago
Harald Hoyer
d93fe0fa35
lsinitrd.sh: fixed case
12 years ago
Harald Hoyer
1cb6524918
lsinitrd.sh: add old cpio signature
12 years ago
Harald Hoyer
b093aa2dc7
beautified shell code
...
checked with shellcheck http://www.shellcheck.net/about.html
12 years ago
Harald Hoyer
4460416abc
lsinitrd.sh: do not output filename for a single file
12 years ago
Harald Hoyer
884e1cda7c
lsinitrd: drop use of "file"
12 years ago
Harald Hoyer
7d9bb76ac7
lsinitrd: switch to getopt and add "-f" and "-k" parameter
12 years ago
Harald Hoyer
d26bd6ca55
lsinitrd.sh: simplify check for boot loader spec dirs
12 years ago
Harald Hoyer
d928724c3c
lsinitrd.sh: removed trailing "}"
12 years ago
Harald Hoyer
727e68d0b5
lsinitrd.sh: fix for default initrd not found, but image given
12 years ago
Harald Hoyer
dde2db3da9
lsinitrd: use /boot/<machine-id>/<kernel-version>/initrd as the default image
...
if /boot/<machine-id> exists; then
use /boot/<machine-id>/<kernel-version>/initrd as the default image;
else fallback to /boot/initramfs-<kernel-version>.img
12 years ago
Harald Hoyer
6d70aa7836
lsinitrd.sh: sort by filename
13 years ago
Harald Hoyer
c072e13162
get rid of "basename"
13 years ago
Harald Hoyer
a85ee030ab
lsinitrd.sh: fixed version file extraction
13 years ago
Harald Hoyer
d8caa679e0
lsinitrd.sh: get rid of awk call
13 years ago
Harald Hoyer
f7bccf3724
lsinitrd.sh: print usage for -?, -h
13 years ago
Nikoli
25ff71b0c7
lsinitrd: support symlinks
13 years ago
Harald Hoyer
bdb818997d
lsinitrd: handle LZMA file type
13 years ago
Harald Hoyer
b5c2fc1141
lsinitrd.sh: no "" for shell regex
13 years ago
Harald Hoyer
552ecca6db
Renamed all shell scripts to *.sh
13 years ago
Harald Hoyer
d20d307d69
lsinitrd: silence xz test
13 years ago
Harald Hoyer
c96425c364
lsinitrd: use xz with --single-stream, if available
...
The F16 installation image is two concatenated cpio images:
[xz-compressed dracut initramfs][uncompressed cpio with /squashfs.img]
So to show the contents, use xz with the "--single-stream" option.
https://bugzilla.redhat.com/show_bug.cgi?id=742299
13 years ago
Cong Wang
3ea5d2e28f
lsinitrd: add '-s' option to sort the initrd output by file size
...
This is useful to analyse which files consume the space of initrd.
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
13 years ago
Amerigo Wang
0c7112fcff
lsinitrd: display the size of initrd
...
It is useful to display the size of initrd in human-friendly form.
Signed-off-by: Amerigo Wang <amwang@redhat.com>
14 years ago
Harald Hoyer
b938443e2f
lsinitrd: handle new output of "file" for XZ compressed images
14 years ago
Harald Hoyer
3b403b32fc
removed trailing whitespaces
14 years ago
Harald Hoyer
829c258554
lsinitrd: default to /boot/initramfs-$(uname -r).img
14 years ago
Harald Hoyer
4af5e99124
move dracut version file to /lib/dracut/dracut-$version
14 years ago
Harald Hoyer
66fe35eb3e
lsinitrd: cope with xz and lzma compressed images
14 years ago
Harald Hoyer
430bfefda3
lsinitrd: add "catinitrd" functionality
...
lsinitrd <initramfs image> [<file to cat>]
15 years ago
Harald Hoyer
cc02093d69
reformat source code
...
removed tabs and set indention to 4 spaces
added emacs and vi format headers
15 years ago
Harald Hoyer
074d12c1fa
add lsinitrd
15 years ago