You are not logged in.
Pages: 1
cat /usr/lib/initcpio/hooks/btrfs
#!/usr/bin/ash
run_hook() {
btrfs device scan
}
# vim: set ft=sh ts=4 sw=4 et:
What type of shell is this? Is a bug this line?
#!/usr/bin/ash
Last edited by GFdevelop (2017-12-08 22:53:01)
Offline
ash is the shell provided by busybox in the initrd.
$ /usr/lib/initcpio/busybox
BusyBox v1.27.2 (2017-10-10 08:57:22 CEST) multi-call binary.
BusyBox is copyrighted by many authors between 1998-2015.
Licensed under GPLv2. See source distribution for detailed
copyright notices.
Usage: busybox [function [arguments]...]
or: busybox --list[-full]
or: busybox --install [-s] [DIR]
or: function [arguments]...
BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable. Most people will create a
link to busybox for each function they wish to use and BusyBox
will act like whatever it was invoked as.
Currently defined functions:
[, ash, awk, basename, blkdiscard, cat, chgrp, chmod, chown, chroot,
clear, cp, cttyhack, cut, dd, df, dirname, dmesg, du, echo, env, expr,
fallocate, false, fatattr, free, fsfreeze, fstrim, getopt, grep, halt,
head, hexdump, ifconfig, init, install, ip, ipaddr, iplink, ipneigh,
iproute, iprule, iptunnel, kbd_mode, kill, killall, less, link, ln,
loadfont, loadkmap, losetup, ls, lsscsi, md5sum, mkdir, mkfifo, mknod,
mkpasswd, mktemp, mountpoint, mv, nc, netstat, nproc, nsenter,
nslookup, openvt, partprobe, paste, pgrep, pidof, ping, ping6,
poweroff, printf, ps, pwd, readlink, reboot, rm, rmdir, route, sed,
seq, setfont, sh, sha1sum, sha256sum, sha512sum, shuf, sleep, sort,
stat, strings, sync, tac, tail, telnet, test, tftp, touch, true,
truncate, umount, uname, uniq, unlink, unshare, uptime, vi, wc, wget,
xxd, yes
Last edited by loqs (2017-12-08 22:48:35)
Offline
ok thanks, SOLVED.
Offline
Pages: 1