Comments (22)
Please try the sdm-cparse
in the attached zip file:
- Unzip it
cd /usr/local/sdm
sudo mv sdm-cparse sdm-save-cparse
sudo cp /path/to/new/sdm-cparse sdm-cparse
Try the --mount
command that previously failed. Please capture and provide all console output if it fails.
Yes, I know this can be done with a github branch
from sdm.
Great! I will make the "odpojenf" and the "Delete dangling loop devices" messages go away, so it will be pretty seamless.
This will be in the next release, coming soon. I'll update this thread when it's available.
from sdm.
Could I convince you to try this updated version just to make sure I didn't duff it?
Thx!
from sdm.
This is all fixed 🤞in V11.5. Please test/verify. Thx!
from sdm.
i have found error in linux dmesg:
EXT4-fs (loop40): VFS: Can't find ext4 filesystem
from sdm.
As I mentioned previously, I installed Mint 20.2 and am unable to repro this.
I do have one idea for what the issue might be, but I'd really like a repro to test it. Any thoughts on how you could create a reliable repro for me?
from sdm.
One thought: Can you burn an ssd or sd card and then try to mount it with sudo sdm --mount ...
?
If this works on the mint system that mounting the IMG is failing, then I have a good idea as to how to fix.
from sdm.
@gitbls done, i successfully burnt with sdm img to medium and i was able sdm --mount this medium
from sdm.
Thx. That confirms for me that it's a bug in old Ubuntu and Mint releases, and will work around it.
from sdm.
sudo sdm --customize --plugin apps:"apps=@myapps" 2023-12-11-raspios-bookworm-armhf-lite.img
i get this error:
* Mount IMG '2023-12-11-raspios-bookworm-armhf-lite.img'
mount: /mnt/sdm: wrong fs type, bad option, bad superblock on /dev/loop40, missing codepage or helper program, or other error
? IMG '' already attached to a loop device
from sdm.
OK, thx. Will instrument up more logging to see what's going on.
from sdm.
This one should put out some logging (so i can see where it's erroring out). Same "install" as before, but you don't need to save the one I previously sent you.
from sdm.
here is output:
* Mount IMG '2023-12-11-raspios-bookworm-armhf-lite.img'
Before 'new' mount
mount: /mnt/sdm: wrong fs type, bad option, bad superblock on /dev/loop40, missing codepage or helper program, or other error
Before 'old' mount
? IMG '' already attached to a loop device
from sdm.
Strange. Investigating...
from sdm.
Please try this version.
sdm-cparse.zip
from sdm.
there are some errors, but i think it works:)
in output, there are czech words, translation:
odpojení selhalo: Takové zařízení nebo adresa neexistuje - unmount failed: this device or address does not exists
připojeno do - mounted to
odpojeno, odpojen - unmounted
* Mount IMG '2023-12-11-raspios-bookworm-armhf-lite.img'
Before 'new' mount
Before 'old' mount
% Delete dangling loop device '/dev/loop40'
/dev/loop40 1996488704 0 1 0 /home/ondicz/sdm/2023-12-11-raspios-bookworm-armhf-lite.img 0 512
losetup: /dev/loop40: odpojení selhalo: Takové zařízení nebo adresa neexistuje
mount: /dev/loop40p2 připojeno do /mnt/sdm.
mount: /dev/loop40p1 připojeno do /mnt/sdm/boot/firmware.
After 'old' mount
* Start Configuration
> Command Line: /usr/local/bin/sdm --customize --plugin apps:apps=@myapps
2023-12-11-raspios-bookworm-armhf-lite.img
* Host Information
Hostname: rimmer
uname: Linux rimmer 5.4.0-172-generic #190-Ubuntu SMP Fri Feb 2 23:24:22 UTC 2024 x86_64
x86_64 x86_64 GNU/Linux
os-release Name: Linux Mint 20.3
Version: 20.3 (Una) (una)
Like OS: ubuntu
sdm Version: V11.4
* IMG Information
Name: 2023-12-11-raspios-bookworm-armhf-lite.img
Date: 2023-12-11
RasPiOS Version: 12
RasPiOS Architecture: 32-bit armhf
os-release Version: 12 (bookworm)
% sdm will use systemd-nspawn on this 'x86-64' host
Retry the command with --chroot if this fails
* Plugins selected:
* apps
Args: apps=@myapps
> IMG '2023-12-11-raspios-bookworm-armhf-lite.img' has 299532 1K-blocks (0,3GB, 0,3GiB) free
> Copy sdm to /usr/local/sdm in the IMG
* Start Phase 0 image customization
> Run Plugins Phase '0'
> Run Plugin 'apps' (/mnt/sdm/usr/local/sdm/plugins/apps) Phase 0 with arguments: 'apps=@myapps'
* Plugin apps: Start Phase 0
> Plugin apps: Keys/values found:
apps: @myapps
? file '/home/ondicz/sdm/myapps' not found
? Plugin 'apps' exited with failure
umount: /mnt/sdm/boot/firmware odpojen
umount: /mnt/sdm odpojen
from sdm.
one more thing. Could you check and see if there are any unexpected, sdm-ish looking loop devices hanging around after you run sdm?
sudo losetup -a
Thx
from sdm.
one more thing. Could you check and see if there are any unexpected, sdm-ish looking loop devices hanging around after you run sdm?
sudo losetup -a
Thx
i see only my snap applications
from sdm.
sure, here it is:
* Mount IMG '2023-12-11-raspios-bookworm-armhf-lite.img'
mount: /dev/loop40p2 připojeno do /mnt/sdm.
mount: /dev/loop40p1 připojeno do /mnt/sdm/boot/firmware.
* Start Configuration
> Command Line: /usr/local/bin/sdm --customize --plugin apps:apps=@myapps
2023-12-11-raspios-bookworm-armhf-lite.img
* Host Information
Hostname: rimmer
uname: Linux rimmer 5.4.0-172-generic #190-Ubuntu SMP Fri Feb 2 23:24:22 UTC 2024 x86_64
x86_64 x86_64 GNU/Linux
os-release Name: Linux Mint 20.3
Version: 20.3 (Una) (una)
Like OS: ubuntu
sdm Version: V11.4
* IMG Information
Name: 2023-12-11-raspios-bookworm-armhf-lite.img
Date: 2023-12-11
RasPiOS Version: 12
RasPiOS Architecture: 32-bit armhf
os-release Version: 12 (bookworm)
% sdm will use systemd-nspawn on this 32-bit x86-64 host
Retry the command with --chroot if this fails
* Plugins selected:
* apps
Args: apps=@myapps
> IMG '2023-12-11-raspios-bookworm-armhf-lite.img' has 299512 1K-blocks (0,3GB, 0,3GiB) free
> Copy sdm to /usr/local/sdm in the IMG
* Start Phase 0 image customization
> Run Plugins Phase '0'
> Run Plugin 'apps' (/mnt/sdm/usr/local/sdm/plugins/apps) Phase 0 with arguments: 'apps=@myapps'
* Plugin apps: Start Phase 0
> Plugin apps: Keys/values found:
apps: @myapps
? file '/home/ondicz/sdm/myapps' not found
? Plugin 'apps' exited with failure
umount: /mnt/sdm/boot/firmware odpojen
umount: /mnt/sdm odpojen
from sdm.
Thanks!
from sdm.
v11.5 is ok
from sdm.
Excellent. Thanks for helping me sort this out. Still strange that I coudn't repro it here on Mint 20.2 😵
from sdm.
Related Issues (20)
- wifi config isn't being applied HOT 8
- Change default aes cipher from aes-cbc-essiv:sha256 to aes-xts-plain64 HOT 4
- ELI5 add authorized_keys file for ssh. HOT 4
- serial plugin not able to disable shell console HOT 14
- Allow to specify the root and boot partitions HOT 16
- The apt-addrepo plugin seems to ignore the name argument HOT 3
- odd results when using plugin bootconfig with section option HOT 10
- Console colors are completely broken after sdm run HOT 9
- Unable to logon to newly imaged NVMe HOT 8
- Invalid systemd version check HOT 4
- Looking for way to set hostname to MAC address during first run HOT 2
- Using of sdm without of system-wide installation HOT 4
- Add ability to assign FS label in parted plugin HOT 6
- Add a user and their SSH key? HOT 5
- Image is not sdm-enhanced HOT 9
- Failure in docker image HOT 2
- [sdm-cryptconfig] - sdmcryptfs does not ask for password on RaspberryPi 5 HOT 10
- system:"name=s1|systemd-config=system=... fails HOT 5
- 'truncate' can fail because of fs.protected_regular HOT 3
- Confusion about systemd HOT 8
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 sdm.