Replies: 2 comments 1 reply
-
Would you be able to post the log here ? In the log you should see your script called. Are all the dependencies of the "extsync.sh" script itself are also included in initramfs ? You can also try rd.break=mount Ps.: You do not need to add a new module just to register a hook. You can just add the hook script in dracut command line |
Beta Was this translation helpful? Give feedback.
-
What suppose to happen if you shut down the computer ? Sync back ? Can you try to solve this at the storage level ? Maybe btrfs raid or bcache ? |
Beta Was this translation helpful? Give feedback.
-
I would like to register a pre-mount hook in order to perform a few changes on rootfs right before it gets mounted for real.
What I did was:
However after booting, rootfs does not contain the file the script should be been created, even through the script script is included in the initrd image.What would be the next steps to find out what is going wrong? I already added "rd.debug log_buf_len=1M" to the kernel line, however I don't see any messages about something going wrong. What would be the next logical issues to look for?
Thanks, Clemens
extsync.sh for now performs the following steps:
#!/bin/sh
/usr/bin/mkdir mp;
/usr/bin/mount /dev/sda3 mp;
/usr/bin/echo "it works" > mp/yes.txt;
/usr/bin/umount mp;
/usr/bin/rm -r mp;
Beta Was this translation helpful? Give feedback.
All reactions