#336 Issue closed: rescue.conf cannot be written

Labels: bug

gdha opened issue at 2013-11-25 12:05:

At the point, where usr/share/rear/rescue/NETFS/default/60_store_NETFS_variables.sh

is sourced it throws an error, complaining that $ROOTFS_DIR$CONFIG_DIR/rescue.conf cannot be written. In my case this resolves to /tmp/rear.<..whatever..>/rootfs/root/rear/etc/rear/rescue.conf
because I extracted the rear archive in /root/rear.

For me, changing 60_store_NETFS_variables.sh so that the last line says

declare -p ${!NETFS*} | sed -e 's/declare .. //' >>$ROOTFS_DIR/etc/rear/rescue.conf

mitigates the error.

Thanks,
Stefan Gundlach


[Export of Github issue for rear/rear.]