Comments (9)
It WAS working, but then I "improved" it, broke it, and clearly failed to retest multiple invocations of the plugin.
Will fix later this morning USPT.
from sdm.
Fixed in V8.6. You can simply re-run EZsdmInstaller to pick it up.
from sdm.
In my first try it didn't work at all now, but I'm still figuring out if this is my fault or not. Will report back after checking.
from sdm.
In my first try it didn't work at all now, but I'm still figuring out if this is my fault or not. Will report back after checking.
If you can't sort it out, post the sdm command you're working with I can have a look at it.
from sdm.
Thank you, I tested more and it seems to be a problem with the changes to the copyfile plugin.
This is my sdm command:
sudo sdm --customize --plugin copyfile:"from=$PWD/050-test.sh|to=/usr/local/sdm/1piboot/|mkdirif=yes|chown=root:root|chmod=755" 2023-05-03-raspios-bullseye-armhf-lite.img
The file 050-test.sh
and the image are in my working dir.
Using the old copyfile https://github.com/gitbls/sdm/blob/fcca7014105b3d6f801bbb1f89ab04674523201c/plugins/copyfile, the file ends up in the image. Using the new copyfile https://github.com/gitbls/sdm/blob/e24a533f6d693b73c83cd9c2bf37a1e4d9cae3bf/plugins/copyfile, the file is missing in the image. You can also see a difference in the relevant sections of the log output, with the new version, the lines where it actually copies the file are missing:
Old copyfile, working:
> Run Plugin 'copyfile' (/mnt/sdm/usr/local/sdm/plugins/copyfile) Phase 0 with arguments:
'from=/workingdir/050-test.sh|to=/usr/local/sdm/1piboot/|mkdirif=yes|chown=
root:root|chmod=755'
* Plugin copyfile: Start Phase 0
> Plugin copyfile: Keys/values found:
from: /workingdir/050-test.sh
to: /usr/local/sdm/1piboot/
mkdirif: yes
chown: root:root
chmod: 755
> Plugin copyfile: Add '/workingdir/050-test.sh' to files to copy
* Plugin copyfile: Complete Phase 0
* Plugin copyfile: Start Phase 1
> Plugin copyfile: Copy '050-test.sh' from /etc/sdm/assets/copyfile to '/usr/local/sdm/1piboot/'
* Plugin copyfile: Complete Phase 1
> Run Plugin 'copyfile' (/usr/local/sdm/plugins/copyfile) Phase post-install with arguments:
'from=/workingdir/050-test.sh|to=/usr/local/sdm/1piboot/|mkdirif=yes|chown=
root:root|chmod=755'
* Plugin copyfile: Start Phase post-install
* Plugin copyfile: Complete Phase post-install
New copyfile, not working:
> Run Plugin 'copyfile' (/mnt/sdm/usr/local/sdm/plugins/copyfile) Phase 0 with arguments:
'from=/workingdir/050-test.sh|to=/usr/local/sdm/1piboot/|mkdirif=yes|chown=
root:root|chmod=755'
* Plugin copyfile: Start Phase 0
> Plugin copyfile: Keys/values found:
from: /workingdir/050-test.sh
to: /usr/local/sdm/1piboot/
mkdirif: yes
chown: root:root
chmod: 755
> Run Plugin 'copyfile' (/usr/local/sdm/plugins/copyfile) Phase 1 with arguments:
'from=/workingdir/050-test.sh|to=/usr/local/sdm/1piboot/|mkdirif=yes|chown=
root:root|chmod=755'
* Plugin copyfile: Start Phase 1
* Plugin copyfile: Complete Phase 1
> Run Plugin 'copyfile' (/usr/local/sdm/plugins/copyfile) Phase post-install with arguments:
'from=/workingdir/050-test.sh|to=/usr/local/sdm/1piboot/|mkdirif=yes|chown=
root:root|chmod=755'
* Plugin copyfile: Start Phase post-install
* Plugin copyfile: Complete Phase post-install
from sdm.
It appears that I duffed an edit. There is a line with a "naked" exit
on it in the plugin. Delete that line and append && exit
to the line above it (logtoboth Nothing to Do).
Not sure how I managed that 😳, but it will be fixed in the next update
from sdm.
Oops 😀
After moving the exit
, it works. Thank you for the quick help!
from sdm.
This is corrected in V9.1.1. Please test, verify, and close this issue.
from sdm.
I can confirm this is fixed in V9.5. Thank you!
from sdm.
Related Issues (20)
- Error on customizing and exploring image HOT 6
- 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 13
- 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 8
- 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 1
- 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
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.