2022-01-01 12:23:52 +01:00
|
|
|
diff -urN archiso-43-a/archiso/initcpio/hooks/archiso archiso-43-b/archiso/initcpio/hooks/archiso
|
|
|
|
|
--- archiso-43-a/archiso/initcpio/hooks/archiso 2021-12-31 23:32:15.547000000 +0000
|
|
|
|
|
+++ archiso-43-b/archiso/initcpio/hooks/archiso 2021-12-31 23:36:53.081000000 +0000
|
|
|
|
|
@@ -247,6 +247,23 @@
|
|
|
|
|
|
|
|
|
|
_mnt_sfs "/run/archiso/bootmnt/${archisobasedir}/${arch}/airootfs.sfs" "/run/archiso/sfs/airootfs"
|
|
|
|
|
|
|
|
|
|
+ if [[ "${copytoram}" == "y" ]]; then
|
|
|
|
|
+ if ls -lh /run/archiso/bootmnt/autorun* >/dev/null 2>/dev/null; then
|
2022-01-02 09:58:05 +01:00
|
|
|
+ msg ":: Copying autorun scripts to RAM ..."
|
2022-01-08 18:14:01 +01:00
|
|
|
+ if ! cp -r /run/archiso/bootmnt/autorun* /run/archiso/copytoram/ ; then
|
2022-01-01 12:23:52 +01:00
|
|
|
+ echo "ERROR: failed to copy '/run/archiso/bootmnt/autorun*' to '/run/archiso/copytoram/'"
|
|
|
|
|
+ launch_interactive_shell
|
|
|
|
|
+ fi
|
|
|
|
|
+ fi
|
2022-01-03 14:39:43 +01:00
|
|
|
+ if ls -lh /run/archiso/bootmnt/sysrescue.d >/dev/null 2>/dev/null; then
|
2022-01-02 09:58:05 +01:00
|
|
|
+ msg ":: Copying configuration files to RAM ..."
|
2022-01-03 14:39:43 +01:00
|
|
|
+ if ! cp -r /run/archiso/bootmnt/sysrescue.d /run/archiso/copytoram/ ; then
|
|
|
|
|
+ echo "ERROR: failed to copy '/run/archiso/bootmnt/sysrescue.d' to '/run/archiso/copytoram/'"
|
2022-01-01 12:23:52 +01:00
|
|
|
+ launch_interactive_shell
|
|
|
|
|
+ fi
|
|
|
|
|
+ fi
|
|
|
|
|
+ fi
|
|
|
|
|
+
|
|
|
|
|
[[ "${loadsrm}" == "y" ]] && _mnt_srm "/run/archiso/bootmnt/${archisobasedir}"
|
|
|
|
|
|
|
|
|
|
if [[ -f "/run/archiso/sfs/airootfs/airootfs.img" ]]; then
|
2022-10-11 21:29:13 +02:00
|
|
|
@@ -328,6 +328,8 @@
|
|
|
|
|
|
|
|
|
|
if [[ "${copytoram}" == "y" ]]; then
|
|
|
|
|
umount -d /run/archiso/bootmnt
|
|
|
|
|
+ # bind-mount bootmnt to create a stable path, for example for autorun scripts
|
|
|
|
|
+ mount --bind /run/archiso/copytoram /run/archiso/bootmnt
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
|