![](https://secure.gravatar.com/avatar/b25d3e5fcc603074f2a1cb79f9981973.jpg?s=120&d=mm&r=g)
Hi, guys! What you think about writable /etc /mnt and /root dirs at the installation disk? I think that in this case inst. disk will be more comfortable. There are few ways how to do this: 1. To use initrd. Slow and not necessary variant. 2. To use fake init like this: # mv /sbin/init /sbin/real_init # cat > /etc/init <<EOF
#!/bin/bash # # /sbin/init: fake init #
/bin/mount -t tmpfs tmpfs /tmp /bin/cp -r /etc /tmp/etc /bin/mount -t tmpfs none /etc /bin/mv /tmp/etc/* /etc/ /bin/rmdir /tmp/etc /bin/mount -t tmpfs none /mnt /bin/mount -t tmpfs none /root
exec /sbin/real_init "$@"
EOF # chmod +x /sbin/init
This variant also not very good. It isn't clean. 3. To use /etc/rc. Good variant. But in this case you must be more careful. -- Artur Tulyulya
participants (1)
-
Artur Tulyulya