![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community, here is the log from the commit of package linuxrc checked in at Thu Feb 28 01:59:57 CET 2008. -------- --- linuxrc/linuxrc.changes 2008-02-20 11:05:43.000000000 +0100 +++ /mounts/work_src_done/STABLE/linuxrc/linuxrc.changes 2008-02-27 11:33:32.000000000 +0100 @@ -1,0 +2,6 @@ +Wed Feb 27 11:33:28 CET 2008 - snwint@suse.de + +- unmount all discs in case YaST could not do it itself (fate #302647) +- support Y2GDB option (fate #302346) + +------------------------------------------------------------------- Old: ---- linuxrc-3.1.6.tar.bz2 New: ---- linuxrc-3.1.8.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ linuxrc.spec ++++++ --- /var/tmp/diff_new_pack.b13517/_old 2008-02-28 01:59:47.000000000 +0100 +++ /var/tmp/diff_new_pack.b13517/_new 2008-02-28 01:59:47.000000000 +0100 @@ -1,5 +1,5 @@ # -# spec file for package linuxrc (Version 3.1.6) +# spec file for package linuxrc (Version 3.1.8) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine @@ -17,9 +17,9 @@ Group: System/Boot AutoReqProv: on Summary: SUSE Installation Program -Version: 3.1.6 +Version: 3.1.8 Release: 1 -Source: linuxrc-3.1.6.tar.bz2 +Source: linuxrc-3.1.8.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -54,6 +54,9 @@ %doc linuxrc.html %changelog +* Wed Feb 27 2008 snwint@suse.de +- unmount all discs in case YaST could not do it itself (fate #302647) +- support Y2GDB option (fate #302346) * Wed Feb 20 2008 snwint@suse.de - fix segfault when selecting an unknown language (#360867) * Mon Feb 04 2008 snwint@suse.de ++++++ linuxrc-3.1.6.tar.bz2 -> linuxrc-3.1.8.tar.bz2 ++++++ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/linuxrc-3.1.6/Changelog new/linuxrc-3.1.8/Changelog --- old/linuxrc-3.1.6/Changelog 2008-02-19 11:46:00.000000000 +0100 +++ new/linuxrc-3.1.8/Changelog 2008-02-27 11:23:45.000000000 +0100 @@ -1,3 +1,9 @@ +27/2/2008: v3.1.8 + - support Y2GDB option (fate #302346) + +25/2/2008: v3.1.7 + - unmount all discs in case YaST could not do it itself (fate #302647) + 18/2/2008: v3.1.6 - fix segfault when selecting an unknown language (#360867) diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/linuxrc-3.1.6/file.c new/linuxrc-3.1.8/file.c --- old/linuxrc-3.1.6/file.c 2008-02-04 17:19:16.000000000 +0100 +++ new/linuxrc-3.1.8/file.c 2008-02-27 11:26:28.000000000 +0100 @@ -275,6 +275,7 @@ { key_yepurl, "yepurl", kf_cfg + kf_cmd }, { key_yepcert, "yepcert", kf_cfg + kf_cmd }, { key_mediacheck, "mediacheck", kf_cfg + kf_cmd }, + { key_y2gdb, "Y2GDB", kf_cfg + kf_cmd }, }; static struct { @@ -1378,6 +1379,10 @@ str_copy(&config.yepcert, f->value); break; + case key_y2gdb: + if(f->is.numeric) config.y2gdb = f->nvalue; + break; + default: break; } @@ -1675,6 +1680,7 @@ file_write_str(f, key_instsys_id, config.instsys_id); file_write_num(f, key_withiscsi, config.withiscsi); file_write_num(f, key_startshell, config.startshell); + file_write_num(f, key_y2gdb, config.y2gdb); if( config.rootpassword && diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/linuxrc-3.1.6/file.h new/linuxrc-3.1.8/file.h --- old/linuxrc-3.1.6/file.h 2008-02-04 17:19:16.000000000 +0100 +++ new/linuxrc-3.1.8/file.h 2008-02-27 11:24:01.000000000 +0100 @@ -47,7 +47,7 @@ key_ibft_hwaddr, key_ibft_ipaddr, key_ibft_netmask, key_ibft_gateway, key_ibft_dns, key_net_retry, key_bootif, key_swap_size, key_ntfs_3g, key_sha1, key_insecure, key_kexec, key_nisdomain, key_nomodprobe, key_device, - key_nomdns, key_yepurl, key_yepcert, key_mediacheck + key_nomdns, key_yepurl, key_yepcert, key_mediacheck, key_y2gdb } file_key_t; typedef enum { diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/linuxrc-3.1.6/global.h new/linuxrc-3.1.8/global.h --- old/linuxrc-3.1.6/global.h 2008-02-04 17:19:16.000000000 +0100 +++ new/linuxrc-3.1.8/global.h 2008-02-27 11:25:48.000000000 +0100 @@ -324,6 +324,7 @@ unsigned sig_failed:1; /* 'content' signature check failed */ unsigned kexec:1; /* kexec to kernel & initrd from repo */ unsigned nomodprobe:1; /* disable modprobe */ + unsigned y2gdb:1; /* pass to yast */ unsigned withiscsi; /* iSCSI parameter */ char *instsys_id; /* instsys id */ char *initrd_id; /* initrd id */ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/linuxrc-3.1.6/linuxrc.c new/linuxrc-3.1.8/linuxrc.c --- old/linuxrc-3.1.6/linuxrc.c 2008-02-04 17:51:14.000000000 +0100 +++ new/linuxrc-3.1.8/linuxrc.c 2008-02-27 11:22:51.000000000 +0100 @@ -512,6 +512,8 @@ util_umount("/dev/pts"); util_umount("/sys"); util_umount("/proc/bus/usb"); + if (!config.rescue) + util_umount_all_devices (); util_umount("/proc"); } diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/linuxrc-3.1.6/util.c new/linuxrc-3.1.8/util.c --- old/linuxrc-3.1.6/util.c 2008-01-30 12:00:21.000000000 +0100 +++ new/linuxrc-3.1.8/util.c 2008-02-27 11:22:51.000000000 +0100 @@ -2,7 +2,7 @@ * * util.c Utility functions for linuxrc * - * Copyright (c) 1996-2002 Hubert Mantel, SuSE Linux AG (mantel@suse.de) + * Copyright (c) 1996-2008 Hubert Mantel, SuSE Linux AG (mantel@suse.de) * */ @@ -4436,3 +4436,47 @@ } } +void util_umount_all_devices () + { + FILE *fd; + char buffer [1000]; + char dir [1000]; + char *dirs [1000]; + int nr_dirs = 0; + int i, j; + + fd = fopen ("/proc/mounts", "r"); + if (fd) + { + while (fgets (buffer, sizeof (buffer), fd)) + if (!strncmp (buffer, "/dev/", 5)) + { + i = j = 0; + while (buffer [i] != ' ') i++; + i++; + while (buffer [i] != ' ') dir [j++] = buffer [i++]; + dir [j] = 0; + dirs [nr_dirs++] = strdup (dir); + } + + fprintf (stderr, "Trying to unmount %d directories:\n", --nr_dirs); + + /* we need to unmount in reverse order */ + + do + { + if (dirs [nr_dirs]) + { + if (dirs [nr_dirs][1]) + { + fprintf (stderr, "Unmounting %s...\n", dirs [nr_dirs]); + umount (dirs [nr_dirs]); + } + free (dirs [nr_dirs]); + } + } + while (nr_dirs--); + + (void) fclose (fd); + } + } diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/linuxrc-3.1.6/util.h new/linuxrc-3.1.8/util.h --- old/linuxrc-3.1.6/util.h 2008-01-30 11:52:55.000000000 +0100 +++ new/linuxrc-3.1.8/util.h 2008-02-27 11:22:51.000000000 +0100 @@ -2,7 +2,7 @@ * * util.h Header file for util.c * - * Copyright (c) 1996-2002 Hubert Mantel, SuSE Linux AG (mantel@suse.de) + * Copyright (c) 1996-2008 Hubert Mantel, SuSE Linux AG (mantel@suse.de) * */ @@ -71,6 +71,7 @@ extern void util_start_shell (char *tty, char *shell, int flags); extern char *util_process_name (pid_t pid); extern char *util_process_cmdline (pid_t pid); +extern void util_umount_all_devices (void); slist_t *slist_new(void); slist_t *slist_free(slist_t *sl); diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/linuxrc-3.1.6/VERSION new/linuxrc-3.1.8/VERSION --- old/linuxrc-3.1.6/VERSION 2008-02-19 11:45:06.000000000 +0100 +++ new/linuxrc-3.1.8/VERSION 2008-02-27 11:23:16.000000000 +0100 @@ -1 +1 @@ -3.1.6 +3.1.8 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de