ALT Linux Bugzilla
– Attachment 7428 Details for
Bug 34600
[FR] /boot строго на ext2 для эльбруса
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
90-fix-e2k-boot.sh
90-fix-e2k-boot.sh (text/plain), 1.02 KB, created by
Michael Shigorin
on 2018-03-13 17:44:11 MSK
(
hide
)
Description:
90-fix-e2k-boot.sh
Filename:
MIME Type:
Creator:
Michael Shigorin
Created:
2018-03-13 17:44:11 MSK
Size:
1.02 KB
patch
obsolete
>#!/bin/sh ># e2k: /boot *needs* to be on ext2, /vm doesn't make that too easy ># https://bugzilla.altlinux.org/34600 > >[ `arch` = 'e2k' ] || exit 0 > >. install2-init-functions > ># uuid -> partition >boot_uuid="$(sed -rn 's,^UUID=(.*)+\s+/boot\s+ext[34]\s+.*,\1,p' $destdir/etc/fstab)" >echo "** boot_uuid=$boot_uuid" >&2 > >boot_dev="$(blkid --uuid "$boot_uuid")" >echo "** boot_dev=$boot_dev" >&2 > ># /boot is ext2 already (just fine) OR missing totally ># (which will bail out either but it's too late here anyways) >[ -b "$boot_dev" ] || exit 0 > ># backup... >cp -av $destdir/boot /tmp >umount -v $destdir/boot > ># tune2fs can't turn extents off, gotta remake the filesystem >mkfs.ext2 -F "$boot_dev" || exit 1 > >uuid="$(blkid "$boot_dev" -s UUID | sed -n -e 's/^.*UUID="\([^"]\+\)".*/\1/p')" >echo "** uuid=$uuid" >&2 >[ -n "$uuid" ] || exit 1 > ># make that official >sed -i "/^UUID=$boot_uuid/ {s/$boot_uuid/$uuid/;s/ext[34]/ext2/}" $destdir/etc/fstab > ># ...restore >mount -v "$boot_dev" $destdir/boot || exit 1 >cp -av /tmp/boot $destdir && rm -rf /tmp/boot || exit 1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 34600
: 7428