]> git.proxmox.com Git - proxmox-backup-restore-image.git/commit
fix #4477: init: symlink busybox binaries on init
authorMax Carrara <m.carrara@proxmox.com>
Thu, 20 Apr 2023 12:53:07 +0000 (14:53 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 17 May 2023 09:32:46 +0000 (11:32 +0200)
commit83c46462ac6a99ce386088587c57e8a5131c36ca
tree0d63273c8e8ebefaa7c9cfd024da8a080ddf107d
parent64f3a452f011a53b6ef8ef564976f93a5209ccd0
fix #4477: init: symlink busybox binaries on init

This change makes Busybox symbolically link its inbuilt utils to their
respective locations, allowing them to be invoked through their
absolute path. This means that Busybox inbuilts like e.g. `mount`
and `env` become available at `/bin/mount` and `/usr/bin/env` etc.

In particular, when entering any of the snapshot directories in
`.zfs/snapshot` (e.g. via `cd` or `ls`), ZFS normally mounts the
respective snapshot(s) on demand, using `/usr/bin/env mount [...]`
internally. Before this change, this would fail, rendering ZFS
snapshots unavailable when restoring individual files.

Signed-off-by: Max Carrara <m.carrara@proxmox.com>
src/init-shim-rs/src/main.rs