Welcome
Welcome to refracta

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today!

some feedback on refracta2usb/installer

Refracta Development, Scripts, etc.

Re: some feedback on refracta2usb/installer

Postby fsmithred » Fri Mar 28, 2014 1:20 pm

I wrapped this sed line in a test, because without it, every locale in locale.gen will be uncommented when there is no default locale set. This is the fix for that...

Code: Select all
# find the current active locale and uncomment it
CURRENT_LOCALE=$(grep -v ^\# /*CENSORED*/default/locale | cut -d= -f2)
if [[ -n "$CURRENT_LOCALE" ]] ; then
   sed -i "s/# $CURRENT_LOCALE/$CURRENT_LOCALE/" /*CENSORED*/locale.gen
fi



Also this - 'dpkg-reconfigure -fgnome' automatically falls back to terminal mode if it fails. No need to code that in. This fixes the problem of dpkg-reconfigure running twice.
Code: Select all
if  [[ $DISPLAY ]] ; then
   dpkg-reconfigure -fgnome tzdata
   dpkg-reconfigure -fgnome locales
#   dpkg-reconfigure -fgnome keyboard-configuration
User avatar
fsmithred
 
Posts: 2101
Joined: Wed Mar 09, 2011 9:13 pm

Re: some feedback on refracta2usb/installer

Postby dzz » Tue Apr 08, 2014 12:30 pm

I noticed that "lost+found" gets rsynced by the installer , if it exists in the live iso. In the official wheezy image it does and is probably included in a custom snapshot .. but probably should not.

I read that "lost+found" is not simply a directory and has specific block assignments. It is created when a new filesystem is made and used by fsck. However I don't know enough about it. Could this be a potential problem?

There is a way to use rsync filters to avoid this, without using "excludes", which seems to work here, leaving lost+found on the target filesystem intact:

Code: Select all
--filter='P lost+found' --filter='H lost+found'
dzz
 
Posts: 647
Joined: Wed Apr 27, 2011 11:53 am
Location: Devon, England

Re: some feedback on refracta2usb/installer

Postby fsmithred » Tue Apr 08, 2014 1:52 pm

http://askubuntu.com/questions/165614/i ... und-folder
Someone on that thread got this message from cron:
Some local file systems lack a lost+found directory. This means if the
file system is damaged and needs to be repaired, fsck will not have
anywhere to put stray files for recovery. You should consider creating
a lost+found directory with mklost+found(8).


I guess I've been lucky - I've deleted the lost+found folder on my separate /home partitions for awhile and haven't had a problem. In fact, I don't think I've seen anything in lost+found since I switched from using ext2 to ext3 for my installations. (more than 10 years ago.)

Your solution seems like a good one - leave it alone if it's there. It's on the TODO list for the tools.

Uh, why would it exist on a live-CD image?

Another issue with the installer: PermitRootLogin in sshd_config is now handled differently in Debian. Instead of "yes" it's set to "without-password" which does not mean what you think it means. The default setting allows root to login through ssh only with auth keys.

I haven't decided what to do about that. I've been thinking about removing or disabling openssh-server for awhile. If that's the case, I could remove the relevant code from the installer and snapshot. AFAIK, most live distros don't have ssh running. Or I could leave it in and add the new option to the scripts and config files.
User avatar
fsmithred
 
Posts: 2101
Joined: Wed Mar 09, 2011 9:13 pm

Re: some feedback on refracta2usb/installer

Postby dzz » Tue Apr 08, 2014 4:08 pm

why would it exist on a live-CD image?

because if you made it with refractasnapshot rather than debootstrap it got processed by rsync. It's not in the excludes list (and probably shouldn't be, better dealt with as a special case) Mount the squash from a refracta wheezy image and you will see.

The proper way to recreate/fix it is apparently mklost+found, not mkdir. This is probably relevant to other usage of rsync for filesystem backup particularly if you use --delete --delete-before or --delete-excluded
dzz
 
Posts: 647
Joined: Wed Apr 27, 2011 11:53 am
Location: Devon, England

Re: some feedback on refracta2usb/installer

Postby thwak » Mon Apr 14, 2014 8:08 am

I grabbed readme.refracta2usb-0.9.6.txt from sourceforce tonight.
Wow, the improvement vs earlier docs is dramatic! Thanks!
The "treeview" illustrating multiview is really enlightening.
thwak
 
Posts: 174
Joined: Tue Nov 20, 2012 3:58 am

Re: some feedback on refracta2usb/installer

Postby fsmithred » Mon Apr 14, 2014 7:28 pm

Glad you like it. I needed the tree view to help me figure out what this program does. Some of the other changes you might recognize as your own suggestions. Thanks for those. I thought the table of contents was a brilliant idea, too. Maybe there will be an html version in the future with links to the different sections, so you don't have to scroll.
User avatar
fsmithred
 
Posts: 2101
Joined: Wed Mar 09, 2011 9:13 pm

Previous

Return to Discuss

Who is online

Users browsing this forum: No registered users and 0 guests

cron
suspicion-preferred