squashing savefile

Programming issues and discussion
Scooby
Site Admin
Posts: 826
Joined: 09 Sep 2013, 16:52

squashing savefile

Postby Scooby » 06 Jan 2014, 19:17

I need advice on what is not a good idea to bring from savefile layer
into a squashfile?

I dont think it is a good idea to bring whiteout files .wh

What about /dev/* ? probably not good to put in a squashfile huh?

What about other special files

Block file(b)
Named pipe file or just a pipe file(p)
Socket file(s)


Anything else?

Scooby
Site Admin
Posts: 826
Joined: 09 Sep 2013, 16:52

Re: squashing savefile

Postby Scooby » 07 Jan 2014, 19:46

When looking at this I came across in /usr/bin/save-session
which touches on my question above.

Code: Select all

cp -afu /mnt/live/memory/changes/{bin,etc,lib,opt,root,sbin,usr,var} $SAVEFILE_MNT 2>/dev/null


1. Isnt directory home missing? home with alternative data for user alpha?

2. Is it non-interesting data in /run?

simargl
Site Admin
Posts: 466
Joined: 16 May 2013, 10:54
Contact:

Re: squashing savefile

Postby simargl » 07 Jan 2014, 20:50

I think /run can be omitted, but /home needs to be in savefile, I'll fix that


Return to “Scripting and Programming”

Who is online

Users browsing this forum: No registered users and 17 guests

cron