hyphop / miZy

miZy - tiny fast embedded linux
https://hyphop.github.io/mizy/
107 stars 12 forks source link

not all changes to rc.local are kept #17

Closed jgeisler0303 closed 5 years ago

jgeisler0303 commented 5 years ago

Hi and thanks for this wonderful image! I got it working and when I edit rc.local e.g. to comment out the launch of mpd and do save_change this is kept after the next reboot. But when I change /opt/eth.disable to /opt/eth.on this change seems to be magically be undone. I would really like to enable wired Ethernet. Can you help me?

jgeisler0303 commented 5 years ago

Hi, I solved the problem myself: there is no "magical" strange behavior. Instead, save_changes seems to not always write the changes to the SD card. Maybe there is some buffer and flushing this buffer is delayed. In any case, calling save_changestwice or even three time and/or waiting some time before reboot helped and all changes persisted.

hyphop commented 5 years ago

hi sorry for delayed answer ! its still actual ?

вт, 16 июл. 2019 г. в 21:26, Jens Geisler notifications@github.com:

Hi and thanks for this wonderful image! I got it working and when I edit rc.local e.g. to comment out the launch of mpd and do save_change this is kept after the next reboot. But when I change /opt/eth.disable to /opt/eth.on this change seems to be magically be undone. I would really like to enable wired Ethernet. Can you help me?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hyphop/miZy/issues/17?email_source=notifications&email_token=AEID44NG7SHQ35KRVW4KQDTP7YHE5A5CNFSM4IEE7UGKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G7RKG2A, or mute the thread https://github.com/notifications/unsubscribe-auth/AEID44PO7NHBXPJHK7HPNXTP7YHE5ANCNFSM4IEE7UGA .

hyphop commented 5 years ago

hi i have seen same issue but only with some sd cards ! may be its a cards problem?! and never have same problem for spi flash!

overlay save -f ; sync

u can try exec sync after save change but, i have check /opt/overlay script and this have sync command already

plz confirm it for diff sd card and i will try to check this problem again!

jgeisler0303 commented 5 years ago

Hi and thanks for the reply. The problem is still actual but almost never problematic anymore since I do the triple save_changes plus a reboot. I will try you suggestions and observe different sd cards. But probably will not be gathering much intel soon since my device is now running headless as intended.

hyphop commented 5 years ago

never watch any problem for spi flash, only for some unbranded sd