Skip to content

Commit

Permalink
r3: fix lvm
Browse files Browse the repository at this point in the history
some errors in the udev rules

13-dm-disk.rules # blkid call (/usr/sbin instead of /sbin)

69-dm-lvm.rules # systemd-run call (missing command - added as script
which strips systemd options away)
  • Loading branch information
frank-w committed Jul 30, 2024
1 parent 1da3c09 commit 1c2b9dd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
7 changes: 6 additions & 1 deletion configs/BPI-R3_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ BR2_PACKAGE_PARTED=y
BR2_PACKAGE_MMC_UTILS=y
BR2_PACKAGE_MTD=y

#BR2_ROOTFS_OVERLAY="rootfs_overlay"
BR2_ROOTFS_OVERLAY="rootfs_overlay_lvm"

BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
BR2_PACKAGE_DHCP=y
Expand All @@ -75,6 +75,11 @@ BR2_PACKAGE_DHCP_CLIENT=y
#to select BR2_PACKAGE_HAS_UDEV
BR2_PACKAGE_EUDEV=y
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y

#systemd (for testing)
#BR2_PACKAGE_SYSTEMD=y
#BR2_INIT_SYSTEMD=y

BR2_PACKAGE_LIBBLOCKDEV=y
BR2_PACKAGE_LVM2=y

Expand Down
8 changes: 8 additions & 0 deletions rootfs_overlay_lvm/usr/bin/systemd-run
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh
logfile=/tmp/error.log
echo $@ > $logfile
#prg=$1
shift 5
(
$@ < /dev/zero >> $logfile 2>&1
)&
1 change: 1 addition & 0 deletions rootfs_overlay_lvm/usr/sbin/blkid

0 comments on commit 1c2b9dd

Please sign in to comment.