Jump to content

[Armbian build PR] - Call `losetup -f` to make sure loop device exists


RSS Bot

Recommended Posts

Description

  1. Added a call to losetup -f which would make sure that there is a loop device that exists and available for use. See #6568
  2. Added doas support to is_root_or_sudo_prefix function. I will understand if this change would be asked to be removed, added just because I use doas.

Jira reference number AR-2132

How Has This Been Tested?

Building using the command ./compile.sh BOARD=orangepi5 BRANCH=legacy BUILD_DESKTOP=no BUILD_MINIMAL=no KERNEL_CONFIGURE=no KERNEL_GIT=shallow RELEASE=bookworm on my machine. For some reason fails on the first try, creating the device and not finding it, but the second run succeeds.

Checklist:

Please delete options that are not relevant.

  • [x] My code follows the style guidelines of this project
  • [x] I have performed a self-review of my own code
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [x] My changes generate no new warnings

View the full article

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines