Репозитории ALT
S: | 24.2-alt3 |
5.1: | 22.7.3-alt6.M51.1 |
4.1: | 22.7.3-alt5 |
4.0: | 22.7.3-alt5 |
3.0: | 22.4.1-alt9 |
Группа :: Система/Ядро и оборудование
Пакет: lilo
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: lilo-22.7.1-alt-root-uuid.patch
Скачать
Скачать
diff -upk.orig lilo-22.7.1.orig/bsect.c lilo-22.7.1/bsect.c
--- lilo-22.7.1.orig/bsect.c 2006-12-29 13:35:37 +0000
+++ lilo-22.7.1/bsect.c 2006-12-29 13:37:25 +0000
@@ -1061,6 +1061,9 @@ if (image) { /* long section specific to
if (stat("/",&st) < 0) pdie("stat /");
sprintf(strchr(options,0),"root=%x ",(unsigned int) st.st_dev);
}
+ else if (strlen(root)>5 && !strncmp(root,"UUID=",5)) {
+ sprintf(strchr(options,0),"root=%s ", root);
+ }
else if (strlen(root)>6 && !strncmp(root,"LABEL=",6)) {
sprintf(strchr(options,0),"root=%s ", root);
}
diff -upk.orig lilo-22.7.1.orig/manPages/lilo.conf.5 lilo-22.7.1/manPages/lilo.conf.5
--- lilo-22.7.1.orig/manPages/lilo.conf.5 2006-12-29 13:35:38 +0000
+++ lilo-22.7.1/manPages/lilo.conf.5 2006-12-29 13:37:25 +0000
@@ -732,13 +732,16 @@ the kernel Makefile, and can later be ch
.sp
(22.6) The root filesystem may also be specified by a
.B LABEL=
-directive, as in '/etc/fstab'. In this case, the argument to
+or (since 22.7.1)
+.B UUID=
+directives, as in '/etc/fstab'. In this case, the argument to
.I root=
must be enclosed in quotation marks, to avoid a syntax error on the second
equal sign; viz.,
.sp
.nf
root="LABEL=MyDisk"
+ root="UUID=deadbeef-dead-c0de-cafe-f00dbadc0ded"
.fi
.sp
Note: The command line