Tiny Core Linux

Tiny Core Base => Micro Core => Topic started by: guweihua on October 01, 2016, 07:38:56 PM

Title: why?I modify the /etc/hosts ,it restored after reboot
Post by: guweihua on October 01, 2016, 07:38:56 PM
I was modifed the /opt/.filetool.lst
echo etc > .filetool.lst

then modify the hosts file , and reboot . it restored in default
Title: Re: why?I modify the /etc/hosts ,it restored after reboot
Post by: Greg Erskine on October 01, 2016, 08:52:49 PM
I would not add all of etc to /opt/.filetool.sh

Did you do a "sudo filetool.sh -b"?

If you are just setting the hostname, then just add the "host=xxxxx" bootcode.
Title: Re: why?I modify the /etc/hosts ,it restored after reboot
Post by: curaga on October 02, 2016, 12:32:25 AM
/etc/hosts is rewritten by the boot process, if you have your own copy, remove the sethostname call from bootsync.sh.