Copy to ram, how to save /var/log directory after reboot?
Posted: 26 Dec 2014, 23:32
What i want to achieve is to create a hybrid. Copy to ram mode with ability to mount /var/log under usb/hdd.
What i am doing right now is:
a) xzm2dir 001-core.xzm 001-core
b) add entry to /etc/fstabc) dir2xzm 001-core 001-core.xzm
But after build there is no sign in /etc/fstab (disappear).
Anyway i was trying add into /001-core/etc/rcS.d/S-show_gvfsBut after build it disappear also.
(not sure if entry disappears because of my bad skills xzm2dir / dir2xzm )
Please advice me where is the best place to addinto /etc/fstab.
What i am doing right now is:
a) xzm2dir 001-core.xzm 001-core
b) add entry to /etc/fstab
Code: Select all
UUID=9267a4de-4123-401f-baaa-feee18dd9e85 /var/log ext4 defaults 0 1
But after build there is no sign in /etc/fstab (disappear).
Anyway i was trying add into /001-core/etc/rcS.d/S-show_gvfs
Code: Select all
echo """UUID=9267a4de-4123-401f-baaa-feee18dd9e85 /var/log ext4 defaults 0 1""" >> /etc/fstab
(not sure if entry disappears because of my bad skills xzm2dir / dir2xzm )
Please advice me where is the best place to add
Code: Select all
UUID=9267a4de-4123-401f-baaa-feee18dd9e85 /var/log ext4 defaults 0 1