You are not logged in.

#1 2017-12-08 22:42:54

GFdevelop
Member
Registered: 2017-09-18
Posts: 27

btrfs-progs bug?!? [SOLVED]

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

#2 2017-12-08 22:47:20

loqs
Member
Registered: 2014-03-06
Posts: 17,321

Re: btrfs-progs bug?!? [SOLVED]

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

#3 2017-12-08 22:50:03

GFdevelop
Member
Registered: 2017-09-18
Posts: 27

Re: btrfs-progs bug?!? [SOLVED]

ok thanks, SOLVED.

Offline

Board footer

Powered by FluxBB