Comments (10)
mknod does get called in check_loop_device, but only with a "found" device, not for creating a missing device. I am putting together a fix for this and will make a PR.
from build.
Jira ticket: AR-2132
from build.
It looks like the script needs to call sudo losetup -f
at least once to make sure there is an available device existing. On my machine, there are no devices that match the pattern of /dev/loopX[Y]
, just /dev/loop-control
. After calling the aforementioned command /dev/loop0
appeared. After doing that, I managed to build an image.
from build.
It looks like the commit to fix this issue got reverted:
7da42c8
FYI this issue also affects Fedora the same way, only /dev/loop-control present and an losetup -f run needed.
from build.
Yes, the commit got reverted until a better solution is made. And thanks for reporting that this is also the case on Fedora, it's probably much easier to test with for others than gentoo
from build.
Happening to me under Fedora, any updates?
from build.
manjaro seems to have the same problem
from build.
My previous attempted solution was calling sudo losetup -f
in the script always, but it's problematic because you can't always expect the user to authorize sudo use. It needs to be called on the host and not inside of docker. Sure, you can do this manually, but the script exists for automating it.
So I propose this mechanism: check for /dev/loop0
to exist, if it's not there, prompt the user whether to call the sudo command from the script, proceed anyway or possibly have the user running the command manually, or abort the process.
from build.
@JohnTheCoolingFan you can check if inside Docker (where it is always root) or not and adapt. What we can't have is it calling losetup in the outer host in the re-launching scenario (consider armbian/build can run the outer host on MacOS/Darwin and the relaunched in Linux on a VM, as is the case with developers using Intel and Apple Silicon Macs with Docker Desktop / Rancher Desktop / Podman Desktop etc).
from build.
My current local fix for this is a script in userpatches/extensions/losetup.sh
:
function add_host_dependencies__losetup(){
if [[ ! -e /dev/loop0 ]]; then
local sudo_prefix="" && is_root_or_sudo_prefix sudo_prefix
${sudo_prefix} losetup -f
fi
}
from build.
Related Issues (20)
- Deboostrap trixie fails at stage 2 HOT 2
- Ubuntu 24.04 as host is unsupported HOT 4
- orangepizero2w board, ethernet PHY likely not powered HOT 25
- Building ubuntu 24.04 image is slow HOT 18
- Problem found in the kernel-debs.sh with applying preempt_rt patch HOT 2
- Builds fail for EOS distributions (for example focal) HOT 3
- Ethernet on Orange Pi 3B not working properly HOT 11
- modprobe: FATAL: Module ext4 not found in directory /lib/modules/6.7.12-amd64 HOT 2
- Relevance of version v23.11 HOT 2
- Display is broken on OLIMEX Teres-I HOT 5
- OLIMEX Teres-I: Audio doesn't work out of the box HOT 1
- OLIMEX Teres-I: parameter rwt_enusbss ignored HOT 1
- The swapaccount= commandline option is deprecated. HOT 2
- Set linux-image packages to provide wireguard-modules HOT 2
- PCIe Link width degraded to x1 for RockPro64 (probably all RK3399) HOT 2
- ssh doesn't honour "ListenAddress" directive HOT 1
- minor rk3588 (-vendor-6.1 -edge) kernel configuration inconsistencies HOT 2
- I would like to change the rfkill behaivor on rk3399's bluetooth service HOT 7
- mac address bug HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from build.