Dnia 22-11-2004, pon o godzinie 22:50 +0100, Karol Kreński napisał(a):
> Krótki skrypt. Sprawdzony, działający. Patrzę właśnie w manual do tara i
> chyba przełącznik -p jeszcze dodam.
>
> Chętnie wysyłucham krytycznych uwag na temat tego skryptu.
jedna uwaga do /tmp (1777, nie 777), 2x niesprawdzona sugestia, raz
antybaszizm ;)
pozdrawiam
-pawel
p.s. Specjalnie ustawiles reply-to, takze i do siebie?
--
Pawel Zurowski
--- root_image.sh 2004-11-22 23:59:19.996973680 +0100
+++ root_image2.sh 2004-11-23 00:17:48.846402944 +0100
@@ -13,6 +13,9 @@
echo; echo;
echo "tar czf $ARCHIVE /bin /boot /dev /etc /home /lib /media /mnt /root /sbin /selinux /srv /usr /var..."
tar czf $ARCHIVE /bin /boot /dev /etc /home /lib /media /mnt /root /sbin /selinux /srv /usr /var
+ # a moze
+ # tar czlf $ARCHIVE --preserve --posix --same-owner --exclude /tmp /
+ # l -- local filesystem
}
create_new_root() {
@@ -38,7 +41,9 @@
for i in `rpm -ql FHS`; do echo "mkdir -p $i" >> /mnt/linuximage/root/create_dirs.sh; done
chmod 755 /mnt/linuximage/root/create_dirs.sh
chroot /mnt/linuximage /root/create_dirs.sh
- chroot /mnt/linuximage /bin/chmod 777 /tmp
+ chroot /mnt/linuximage /bin/chmod 1777 /tmp
+ # a czt nie lepiej by bylo:
+ # chroot /mnt/linuximage poldek --install --reinstall FHS
# manual_changes
# Make changes to /etc/fstab manually && geninitrd
@@ -59,6 +64,7 @@
EOF
}
+# born to kill bashizm ;)
while getopts "cXh" opt
do
case $opt in
_______________________________________________
pld-users-pl mailing list
[EMAIL PROTECTED]
http://lists.pld-linux.org/mailman/listinfo/pld-users-pl