by ElmoT » Fri Jan 11, 2019 6:11 pm
$this->bbcode_second_pass_quote('', 'D')ownload and extract the root filesystem (as root, not via sudo):
$this->bbcode_second_pass_code('', 'wget http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-2-latest.tar.gz
bsdtar -xpf ArchLinuxARM-rpi-2-latest.tar.gz -C root
sync')
Why can't I use sudo here?
Does something like this work? $this->bbcode_second_pass_code('', 'su root -c 'bsdtar -xpf ArchLinuxARM-rpi-2-latest.tar.gz -C /mnt/root'')