You are not logged in.

#1 2021-02-12 03:07:45

Gekume123
Member
Registered: 2020-09-19
Posts: 29

[SOLVED] /bin exists in filesystem (owned by filesystem)

So I'm trying to create a very simple pkgbuild for this package that I had originally installed from source: https://github.com/zbm-dev/zfsbootmenu

Here's my PKGBUILD: https://pastebin.com/EM2ZQ1qh

I am installing with

makepkg -si --skipinteg

currently but it shouldn't affect it.


Originally, I got this error:

error: failed to commit transaction (conflicting files)
zfsbootmenu: /bin exists in filesystem (owned by filesystem)
zfsbootmenu: /bin/generate-zbm exists in filesystem
zfsbootmenu: /etc/zfsbootmenu/config.yaml exists in filesystem
zfsbootmenu: /etc/zfsbootmenu/dracut.conf.d/zfsbootmenu.conf exists in filesystem
zfsbootmenu: /usr/lib/dracut/modules.d/90zfsbootmenu/module-setup.sh exists in filesystem
zfsbootmenu: /usr/lib/dracut/modules.d/90zfsbootmenu/tmux.conf exists in filesystem
zfsbootmenu: /usr/lib/dracut/modules.d/90zfsbootmenu/zfs-chroot.sh exists in filesystem
zfsbootmenu: /usr/lib/dracut/modules.d/90zfsbootmenu/zfsbootmenu-countdown.sh exists in filesystem
zfsbootmenu: /usr/lib/dracut/modules.d/90zfsbootmenu/zfsbootmenu-exec.sh exists in filesystem
zfsbootmenu: /usr/lib/dracut/modules.d/90zfsbootmenu/zfsbootmenu-help.sh exists in filesystem
zfsbootmenu: /usr/lib/dracut/modules.d/90zfsbootmenu/zfsbootmenu-input.sh exists in filesystem
zfsbootmenu: /usr/lib/dracut/modules.d/90zfsbootmenu/zfsbootmenu-lib.sh exists in filesystem
zfsbootmenu: /usr/lib/dracut/modules.d/90zfsbootmenu/zfsbootmenu-parse-commandline.sh exists in filesystem
zfsbootmenu: /usr/lib/dracut/modules.d/90zfsbootmenu/zfsbootmenu-preview.sh exists in filesystem
zfsbootmenu: /usr/lib/dracut/modules.d/90zfsbootmenu/zfsbootmenu.sh exists in filesystem
zfsbootmenu: /usr/lib/dracut/modules.d/90zfsbootmenu/zlogtail.sh exists in filesystem
zfsbootmenu: /usr/share/examples/zfsbootmenu/keycache.sh exists in filesystem
zfsbootmenu: /usr/share/examples/zfsbootmenu/xhci-teardown.sh exists in filesystem
Errors occurred, no packages were upgraded.

and I figured this was because I had already installed this once from source, so the files were already there. I deleted them, but I still get

error: failed to commit transaction (conflicting files)
zfsbootmenu: /bin exists in filesystem (owned by filesystem)
Errors occurred, no packages were upgraded.

I have upgraded the filesystem package today if it matters.

Thanks smile

Last edited by Gekume123 (2021-02-12 04:51:32)

Offline

#2 2021-02-12 03:27:23

Scimmia
Fellow
Registered: 2012-09-01
Posts: 8,671

Re: [SOLVED] /bin exists in filesystem (owned by filesystem)

Files need to be installed to /usr/bin, not to /bin. See if there's an option in the makefile for BINDIR, or if not, just mv it.

Offline

#3 2021-02-12 03:30:13

loqs
Member
Registered: 2014-03-06
Posts: 13,936

Re: [SOLVED] /bin exists in filesystem (owned by filesystem)

	make DESTDIR="$pkgdir/" PREFIX=usr install

Edit:

pkgname=(zfsbootmenu)
pkgver=1.8.1
pkgrel=1
pkgdesc="ZFS Bootloader for root-on-ZFS systems with support for snapshots and native full disk encryption"
arch=(any)
url="https://github.com/zbm-dev/zfsbootmenu"
license=('MIT')
depends=(
  'fzf'
  'kexec-tools'
  'dracut'
  'zfs-linux'
)
source=("$pkgname-$pkgver.tar.gz::https://github.com/zbm-dev/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('b86e34448ccb43e4c4f2e6cad51886bb97252475318b79e27c963dc42f64e787')

package() {
	cd "$pkgname-$pkgver"
	make DESTDIR="$pkgdir" PREFIX=usr install
	install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

Last edited by loqs (2021-02-12 03:37:31)

Offline

#4 2021-02-12 04:51:18

Gekume123
Member
Registered: 2020-09-19
Posts: 29

Re: [SOLVED] /bin exists in filesystem (owned by filesystem)

@loqs, thanks so much for the help, worked great smile

And thx for putting the hash too tongue

EDIT: for some reason I can't find generate-zbm in bin or usr bin?

Last edited by Gekume123 (2021-02-12 04:59:03)

Offline

#5 2021-02-12 05:54:22

ayekat
Member
Registered: 2011-01-17
Posts: 1,462
Website

Re: [SOLVED] /bin exists in filesystem (owned by filesystem)

Gekume123 wrote:

EDIT: for some reason I can't find generate-zbm in bin or usr bin?

Check the package content with pacman -Ql and see if it got perhaps installed somewhere else.


{,META,RE}PKGBUILDSpacman-hacks (includes makemetapkg and remakepkg) │ dotfiles

Offline

#6 2021-02-12 17:11:53

Gekume123
Member
Registered: 2020-09-19
Posts: 29

Re: [SOLVED] /bin exists in filesystem (owned by filesystem)

ayekat wrote:
Gekume123 wrote:

EDIT: for some reason I can't find generate-zbm in bin or usr bin?

Check the package content with pacman -Ql and see if it got perhaps installed somewhere else.

❯ pacman -Ql zfsbootmenu
zfsbootmenu /etc/
zfsbootmenu /etc/zfsbootmenu/
zfsbootmenu /etc/zfsbootmenu/config.yaml
zfsbootmenu /etc/zfsbootmenu/dracut.conf.d/
zfsbootmenu /etc/zfsbootmenu/dracut.conf.d/zfsbootmenu.conf
zfsbootmenu /usr/
zfsbootmenu /usr/lib/
zfsbootmenu /usr/lib/dracut/
zfsbootmenu /usr/lib/dracut/modules.d/
zfsbootmenu /usr/lib/dracut/modules.d/90zfsbootmenu/
zfsbootmenu /usr/lib/dracut/modules.d/90zfsbootmenu/module-setup.sh
zfsbootmenu /usr/lib/dracut/modules.d/90zfsbootmenu/tmux.conf
zfsbootmenu /usr/lib/dracut/modules.d/90zfsbootmenu/zfs-chroot.sh
zfsbootmenu /usr/lib/dracut/modules.d/90zfsbootmenu/zfsbootmenu-countdown.sh
zfsbootmenu /usr/lib/dracut/modules.d/90zfsbootmenu/zfsbootmenu-exec.sh
zfsbootmenu /usr/lib/dracut/modules.d/90zfsbootmenu/zfsbootmenu-help.sh
zfsbootmenu /usr/lib/dracut/modules.d/90zfsbootmenu/zfsbootmenu-input.sh
zfsbootmenu /usr/lib/dracut/modules.d/90zfsbootmenu/zfsbootmenu-lib.sh
zfsbootmenu /usr/lib/dracut/modules.d/90zfsbootmenu/zfsbootmenu-parse-commandline.sh
zfsbootmenu /usr/lib/dracut/modules.d/90zfsbootmenu/zfsbootmenu-preview.sh
zfsbootmenu /usr/lib/dracut/modules.d/90zfsbootmenu/zfsbootmenu.sh
zfsbootmenu /usr/lib/dracut/modules.d/90zfsbootmenu/zlogtail.sh
zfsbootmenu /usr/share/
zfsbootmenu /usr/share/examples/
zfsbootmenu /usr/share/examples/zfsbootmenu/
zfsbootmenu /usr/share/examples/zfsbootmenu/keycache.sh
zfsbootmenu /usr/share/examples/zfsbootmenu/xhci-teardown.sh
zfsbootmenu /usr/share/licenses/
zfsbootmenu /usr/share/licenses/zfsbootmenu/
zfsbootmenu /usr/share/licenses/zfsbootmenu/LICENSE
zfsbootmenu /usr/share/man/
zfsbootmenu /usr/share/man/man5/
zfsbootmenu /usr/share/man/man5/generate-zbm.5.gz
zfsbootmenu /usr/share/man/man7/
zfsbootmenu /usr/share/man/man7/zfsbootmenu.7.gz
zfsbootmenu /usr/share/man/man8/
zfsbootmenu /usr/share/man/man8/generate-zbm.8.gz

Looks like generate-zbm wasn't added.

I see this when installing

install -m 0755 -t /vault/files/dev/zfsbootmenu/pkg/zfsbootmenuusr/bin/ -D bin/generate-zbm

but I'm not sure why it's not there.

Thx

Offline

#7 2021-02-12 17:30:34

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 9,496

Re: [SOLVED] /bin exists in filesystem (owned by filesystem)

install -m 0755 -t /vault/files/dev/zfsbootmenu/pkg/zfsbootmenuusr/bin/ -D bin/generate-zbm

zfsbootmenuusr is the problem .

Check the Makefile at https://github.com/zbm-dev/zfsbootmenu/ … r/Makefile , line 10 .
It  misses a / between $(DESTDIR) and $(PREFIX) .

Using sed or patch to correct that line (and reporting it upstream) seems simplest method to workaround it.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
Did you use the guided installer ? If yes, I can't help you.

(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#8 2021-02-12 17:33:52

Gekume123
Member
Registered: 2020-09-19
Posts: 29

Re: [SOLVED] /bin exists in filesystem (owned by filesystem)

Lone_Wolf wrote:

Check the Makefile at https://github.com/zbm-dev/zfsbootmenu/ … r/Makefile , line 10 .
It  misses a / between $(DESTDIR) and $(PREFIX) .

Thanks so much, fixed it. It's just my own PKGBUILD for myself btw

smile

thanks everyone who responded

Last edited by Gekume123 (2021-02-12 20:06:22)

Offline

#9 2021-02-12 21:49:14

eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] /bin exists in filesystem (owned by filesystem)

loqs wrote:
	make DESTDIR="$pkgdir/" PREFIX=usr install
Lone_Wolf wrote:

install -m 0755 -t /vault/files/dev/zfsbootmenu/pkg/zfsbootmenuusr/bin/ -D bin/generate-zbm

zfsbootmenuusr is the problem .

Check the Makefile at https://github.com/zbm-dev/zfsbootmenu/ … r/Makefile , line 10 .
It  misses a / between $(DESTDIR) and $(PREFIX) .

Using sed or patch to correct that line (and reporting it upstream) seems simplest method to workaround it.

Ooooooor, do not set PREFIX to "usr", set it to "/usr" as intended.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#10 2021-02-12 21:53:17

loqs
Member
Registered: 2014-03-06
Posts: 13,936

Re: [SOLVED] /bin exists in filesystem (owned by filesystem)

eschwartz wrote:

Ooooooor, do not set PREFIX to "usr", set it to "/usr" as intended.

It's obvious once you point it out.  Can I persuade you to look at https://bbs.archlinux.org/viewtopic.php?id=263533 please.

Offline

Board footer

Powered by FluxBB