{"id":7924,"date":"2024-04-29T08:16:54","date_gmt":"2024-04-28T23:16:54","guid":{"rendered":"http:\/\/www.hbnet.jp\/papas\/weblog\/?p=7924"},"modified":"2024-04-29T08:16:54","modified_gmt":"2024-04-28T23:16:54","slug":"post-7924","status":"publish","type":"post","link":"http:\/\/www.hbnet.jp\/papas\/weblog\/2024\/04\/29\/post-7924\/","title":{"rendered":"\u30b5\u30fc\u30d0\u30fc\u30ea\u30cb\u30e5\u30fc\u30a2\u30eb\u8a08\u753b\uff08\uff12\uff09"},"content":{"rendered":"<p>\u4eca\u56de\uff12\u56de\u76ee\u306e\u30ea\u30cb\u30e5\u30fc\u30a2\u30eb\u8a08\u753b\u306e\u6295\u7a3f\u3067\u3059\u3002<br \/>\u73fe\u5728\u306e\u30cf\u30fc\u30c9\u304c\u5b89\u5b9a\u3057\u3066\u52d5\u3044\u3066\u304f\u308c\u3066\u308b\u306e\u3067\u3001Second Ethernet \u4ee5\u5916\u306f\u3001<br \/>\u307b\u307c\u540c\u3058\u69cb\u6210\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\u300c<a href=\"http:\/\/www.hbnet.jp\/papas\/weblog\/2021\/02\/21\/post-1962\/\" target=\"_blank\" rel=\"noopener\">\u30b5\u30fc\u30d0\u30fc\u7d44\u307f\u7acb\u3066\u30823\u5e74\u524d\u3068\u540c\u3058\u3067\u3059<\/a>\u300d<br \/>\u3068\u8a00\u3046\u4e8b\u3067\u3001OS\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u306a\u306e\u3067\u3059\u304c\u3001\u3053\u3061\u3089\u3082\u4eca\u56de\u306f\u7aef\u6298\u308a\u307e\u3059\u3002<br \/>\u73fe\u5728\u52d5\u4f5c\u4e2d\u306eOS\u304c\u300cCentOS8 Stream\u300d\u3067\u79fb\u884c\u3057\u3088\u3046\u3068\u601d\u3063\u3066\u3044\u308b\u306e\u304c\u300cRocky Linux 8\u300d<br \/>\u3044\u308d\u3044\u308d\u63a2\u3057\u3066\u3044\u308b\u3068\u3001\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u306a\u3044\u3067\u3001\u79fb\u884c\u51fa\u6765\u305d\u3046\u306a\u306e\u3067\u3001\u79fb\u884c\u30c4\u30fc\u30eb\u3092<br \/>\u4f7f\u3063\u3066\u3001\u305d\u306e\u307e\u307e\u9032\u3081\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>&lt;\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30c4\u30fc\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002&gt;<\/p>\n\n\n<pre class=\"wp-block-preformatted has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-d38475bfc74f2b1fb1da5900ce60029f\" style=\"font-style:normal;font-weight:600\">git clone https:\/\/github.com\/rocky-linux\/rocky-tools.git<\/pre>\n\n\n<p>&lt;\u7d9a\u3044\u3066\u3001\u53d6\u5f97\u3057\u305f\u3089\u3001\u30c4\u30fc\u30eb\u300cmigrate2rocky.sh\u300d\u306b\u5b9f\u884c\u6a29\u9650\u3092\u4ed8\u4e0e\u3057\u307e\u3059\u3002&gt;<\/p>\n\n\n<pre class=\"wp-block-preformatted has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-fd35040608fcd41b8d325b68344f4181\" style=\"font-style:normal;font-weight:600\">cd rocky-tools\/migrate2rocky<br>chmod +x migrate2rocky.sh<\/pre>\n\n\n<p>\u3055\u3066\u3001\u52d5\u304b\u3059\u6e96\u5099\u306f\u3067\u304d\u307e\u3057\u305f\u3002<br \/>\u305d\u306e\u524d\u306b\u3001\u304a\u7d04\u675f\u3002<br \/>\u5168\u30c7\u30fc\u30bf\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u5b9f\u65bd\u3057\u3066\u3001\u3053\u306e\u6642\u70b9\u307e\u3067\u623b\u308c\u308b\u72b6\u614b\u306b\u3057\u3066\u30fb\u30fb\u30fb\u30fb<\/p>\n<p>\u3044\u3056\u3001\u30b9\u30bf\u30fc\u30c8\u30fb\u30fb\u30fb\u30fb<\/p>\n\n\n<pre class=\"wp-block-preformatted has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-97c3fd9624f83993e5c192b1257fa37d\" style=\"font-style:normal;font-weight:600\">.\/migrate2rocky.sh -r<\/pre>\n\n\n<p>\u4f55\u3084\u3089\u6700\u5f8c\u306e\u65b9\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u6b62\u307e\u308a\u307e\u3057\u305f\u3002<br \/>\u3042\u308c\uff01\u3084\u3070\uff01\u3053\u308c\u306f\u8d77\u52d5\u51fa\u6765\u306a\u304f\u306a\u308b\u30d1\u30bf\u30fc\u30f3\u3060\u3001\u6700\u5f8c\u306e GRUB\u518d\u69cb\u6210\u3067\u5931\u6557\u3057\u3066\u308b\u3002<br \/>\u30e4\u30c3\u30d1\u30ea\u3001\u3044\u304d\u306a\u308a\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u52d5\u304b\u3059\u306e\u306f\u554f\u984c\u304c\u6709\u3063\u305f\u3088\u3046\u3067\u3059\u3002<br \/>\u3068\u8a00\u3046\u4e8b\u3067\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306b\u623b\u3057\u3066\u518d\u8d77\u52d5\u3001\u3082\u3046\u4e00\u5ea6\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3066\u3001<br \/>\u66f4\u306b\u3082\u3046\u4e00\u3064\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u4f5c\u3063\u3066\u3001\u540c\u3058\u30c7\u30fc\u30bf\u304c\uff13\u3064\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n<pre class=\"wp-block-preformatted has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-1678da47b4e5f767c685a46b7dcece40\" style=\"font-style:normal;font-weight:600\">-rw-r--r-- 1 root root  6893  4\u6708 24 23:27 README.md<br>-rwxr-xr-x 1 root root 44912  4\u6708 24 23:27 migrate2rocky.sh<br>-rwxr-xr-x 1 root root 44177  4\u6708 24 23:27 migrate2rocky9.sh<\/pre>\n\n\n<p>\u304a\uff01 README.md \u304c\u6709\u308b\u3058\u3083\u306a\u3044\u3067\u3059\u304c\u3001\u4eca\u66f4\u3067\u3059\u304c\u30fb\u30fb\u6700\u521d\u304b\u3089\u8aad\u3081\u3088\uff01<br \/>\u30b8\u30c3\u30af\u30ea\u8aad\u3080\u3053\u3068\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n<pre class=\"wp-block-preformatted has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-858c639b2076475d8ad78764c1613361\" style=\"font-style:normal;font-weight:600\">system (such as CentOS, RHEL) to Rocky Linux.<br>Use `migrate2rocky` to convert Enterprise Linux 8 systems to Rocky Linux 8.<br>Use `migrate2rocky9` to convert Enterprise Linux 9 systems to Rocky Linux 9.<br>**Upgrades are not supported.**<br><br>\u30b7\u30b9\u30c6\u30e0 (CentOS\u3001RHEL \u306a\u3069) \u3092 Rocky Linux \u306b\u5909\u63db\u3057\u307e\u3059\u3002<br>Enterprise Linux 8 \u30b7\u30b9\u30c6\u30e0\u3092 Rocky Linux 8 \u306b\u5909\u63db\u3059\u308b\u306b\u306f\u3001\u300cmerge2rocky\u300d\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<br>Enterprise Linux 9 \u30b7\u30b9\u30c6\u30e0\u3092 Rocky Linux 9 \u306b\u5909\u63db\u3059\u308b\u306b\u306f\u3001\u300cmerge2rocky9\u300d \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<br>**\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002**<\/pre>\n\n\n<p>\u306a\u308b\u307b\u3069\u3001\u540c\u4e00\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306e\u79fb\u884c\u306f\u51fa\u6765\u308b\u3051\u3069\u3001\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u306f\u51fa\u6765\u307e\u305b\u3093\u3088\u30fb\u30fb\u30fb<br \/>\u3068\u8a00\u3046\u4e8b\u3067\u3059\u306d\u3002<br \/>\u3046\u3093\u3001\u3053\u3053\u306f\u9593\u9055\u3063\u3066\u307e\u305b\u3093\u30fb\u30fb\u30fb\u30fb\u6b21<\/p>\n\n\n<pre class=\"wp-block-preformatted has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-6169844daeb5d4fd580fd97e675b9cb4\" style=\"font-style:normal;font-weight:600\">### Usage<br>.\/migrate2rocky.sh -h<br>tqq -h   # --&gt; Display this help<br>tqq -r   # --&gt; Convert to Rocky<br>mqq -V   # --&gt; Verify switch<\/pre>\n\n\n<p>-V \u30d9\u30ea\u30d5\u30a1\u30f3\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u3042\u3063\u305f\u3093\u3060\u3001\u5b9f\u884c\u524d\u306b\u30c1\u30a7\u30c3\u30af\u51fa\u6765\u308b\u3063\u3066\u4e8b\u306d\u3002<br \/>\u6b21\u56de\u306f\u4f7f\u3063\u3066\u307f\u308b\u4e8b\u306b\u3057\u307e\u3057\u3087\u3046\u30fb\u30fb\u30fb\u30fb\u6b21<\/p>\n\n\n<pre class=\"wp-block-preformatted has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-aaa5be4bcf9e1d3660f8e539cc485204\" style=\"font-style:normal;font-weight:600\">\/usr   250M<br>\/var   1.5G<br>\/boot  50M<\/pre>\n\n\n<p>\u5fc5\u8981\u306a\u30c7\u30a3\u30b9\u30af\u5bb9\u91cf\u306f\u30fb\u30fb\u30fb\u5341\u5206\u78ba\u4fdd\u3055\u308c\u3066\u307e\u3059\u306d\u3002<br \/>\/boot \u306b 50M\u306e\u30c7\u30a3\u30b9\u30af\u5bb9\u91cf\u304c\u5fc5\u8981\u3068\u306a\u30fb\u30fb\u30fb\u7a7a\u3044\u3066\u307e\u3059\u304c\u5ff5\u306e\u305f\u3081\u3001<br \/>\u4e0d\u8981\u306a\u30ab\u30fc\u30cd\u30eb\u3092\u524a\u9664\u3057\u3066\u3001\u7a7a\u304d\u3092\u78ba\u4fdd\u3059\u308b\u4e8b\u306b\u3057\u307e\u3057\u3087\u3046\u30fb\u30fb\u30fb\u30fb\u6b21<\/p>\n\n\n<pre class=\"wp-block-preformatted has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-b90a38b01e7b9782634ced3565a8cb3e\" style=\"font-style:normal;font-weight:600\">### Recommended Practice<br><br>When running this script, especially via a remote session, it is highly<br>recommended to enter a screen or tmux session before running.  If a standard<br>ssh or terminal session, such as the Cockpit Terminal window, is disrupted, the<br>script will die and leave the system in a potential unrecoverable state.  For<br>more on tmux sessions, please see:  https:\/\/github.com\/tmux\/tmux\/wiki<br><br>### \u63a8\u5968\u3055\u308c\u308b\u5b9f\u8df5\u65b9\u6cd5<br><br>\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u5834\u5408\u3001\u7279\u306b\u30ea\u30e2\u30fc\u30c8 \u30bb\u30c3\u30b7\u30e7\u30f3\u7d4c\u7531\u3067\u5b9f\u884c\u3059\u308b\u3068\u3001<br>\u5b9f\u884c\u3059\u308b\u524d\u306b\u3001screen \u307e\u305f\u306f tmux \u30bb\u30c3\u30b7\u30e7\u30f3\u306b\u5165\u308b\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002\u898f\u683c\u306a\u3089<br>ssh \u307e\u305f\u306f\u30bf\u30fc\u30df\u30ca\u30eb \u30bb\u30c3\u30b7\u30e7\u30f3 (\u30b3\u30c3\u30af\u30d4\u30c3\u30c8 \u30bf\u30fc\u30df\u30ca\u30eb \u30a6\u30a3\u30f3\u30c9\u30a6\u306a\u3069) \u304c\u4e2d\u65ad\u3055\u308c\u308b\u3068\u3001<br>\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u505c\u6b62\u3057\u3001\u30b7\u30b9\u30c6\u30e0\u304c\u56de\u5fa9\u4e0d\u80fd\u306a\u72b6\u614b\u306b\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u306e\u305f\u3081\u306b<br>tmux \u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001https:\/\/github.com\/tmux\/tmux\/wiki \u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/pre>\n\n\n<p>\u30ea\u30e2\u30fc\u30c8\u3067\u4f5c\u696d\u3059\u308b\u306a\u3063\u3066\u4e8b\u3067\u3059\u306d\u3002<br \/>\u5b9f\u306f\u3053\u308c\u3001\u3084\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<br \/>\u30b3\u30f3\u30bd\u30fc\u30eb\u3092\u64cd\u4f5c\u3059\u308b\u306e\u304c\u9762\u5012\u3060\u3063\u305f\u306e\u3067\u3001SSH\u3067\u30b5\u30fc\u30d0\u306b\u63a5\u7d9a\u30fb\u30fb\u30fb<br \/>\u300c\u30b7\u30b9\u30c6\u30e0\u304c\u56de\u5fa9\u4e0d\u80fd\u306b\u306a\u308b\u53ef\u80fd\u6027\u304c\u30fb\u30fb\u30fb\u30fb\u300d<br \/>\u6b21\u56de\u306f\u3001\u30ba\u30dc\u30e9\u305b\u305a\u306b\u3001\u30e2\u30cb\u30bf\u30fc\u3068\u30ad\u30fc\u30dc\u30fc\u30c9\u3001\u30de\u30a6\u30b9\u3092\u63a5\u7d9a\u3057\u3066\u4f5c\u696d\u3057\u307e\u3059\u30fb\u30fb\u30fb\u30fb\u6b21<\/p>\n\n\n<pre class=\"wp-block-preformatted has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-863450a7876778f04dd67c2dc92a8c5d\" style=\"font-style:normal;font-weight:600\">#### Running the script in Cockpit's Terminal Screen will be interrupted<br><br>Do not run this script through the Terminal screen built into Cockpit.  As the<br>script runs the upgrades, Cockpit will be restarted and Terminal connection will<br>disconnect, thus stopping the script and leaving the system in an unrecoverable<br>state.  It may be possible to launch a screen or tmux session from the Cockpit<br>Terminal, but USE AT YOUR OWN RISK.<br><br>#### \u30b3\u30c3\u30af\u30d4\u30c3\u30c8\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u753b\u9762\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3068\u4e2d\u65ad\u3055\u308c\u307e\u3059<br><br>Cockpit \u306b\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u308b\u30bf\u30fc\u30df\u30ca\u30eb\u753b\u9762\u304b\u3089\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002\u3068\u3057\u3066<br>\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u3001\u30b3\u30c3\u30af\u30d4\u30c3\u30c8\u304c\u518d\u8d77\u52d5\u3055\u308c\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u63a5\u7d9a\u304c\u958b\u59cb\u3055\u308c\u307e\u3059\u3002<br>\u5207\u65ad\u3055\u308c\u308b\u305f\u3081\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u505c\u6b62\u3057\u3001\u30b7\u30b9\u30c6\u30e0\u304c\u56de\u5fa9\u4e0d\u80fd\u306a\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\u3002<br>\u5dde\u3002\u30b3\u30c3\u30af\u30d4\u30c3\u30c8\u304b\u3089 screen \u307e\u305f\u306f tmux \u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u8d77\u52d5\u3067\u304d\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<br>\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u3059\u304c\u3001\u3054\u81ea\u8eab\u306e\u8cac\u4efb\u3067\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/pre>\n\n\n<p>Cockpit \u306f\u4f7f\u3063\u3066\u307e\u305b\u3093\u304c\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3055\u308c\u3066\u307e\u3059\u306d\u3002<br \/>\u3053\u306e\u969b\u3060\u304b\u3089\u3001\u4e0d\u8981\u306a\u7269\u306f\u524a\u9664\u3059\u308b\u4e8b\u306b\u3057\u307e\u3057\u3087\u3046\u30fb\u30fb\u30fb\u30fb\u6b21<\/p>\n\n\n<pre class=\"wp-block-preformatted has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-61d6120f2f120d2fbd27ed3262879e77\" style=\"font-style:normal;font-weight:600\">#### EL8.0 Migrations<br><br>If you are attempting to migrate a system that has not been updated since 8.0<br>then you must run `dnf update` before attempting the migration.<br><br>If you are migrating from CentOS 8.0 then you must manually fix the baseurls of<br>the CentOS repositories before running `dnf update`:<br>```<br>sed -i -r \\<br>    -e 's!^mirrorlist=!#mirrorlist=!' \\<br>    -e 's!^#?baseurl=http:\/\/(mirror|vault).centos.org\/\\$contentdir\/\\$releasever\/!baseurl=https:\/\/dl.rockylinux.org\/vault\/centos\/8.5.2111\/!i' \\<br>    \/etc\/yum.repos.d\/CentOS-*.repo<br><br>#### EL8.0 \u306e\u79fb\u884c<br><br>8.0 \u4ee5\u964d\u66f4\u65b0\u3055\u308c\u3066\u3044\u306a\u3044\u30b7\u30b9\u30c6\u30e0\u3092\u79fb\u884c\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u308b\u5834\u5408<br>\u305d\u306e\u5834\u5408\u306f\u3001\u79fb\u884c\u3092\u8a66\u307f\u308b\u524d\u306b\u300cdnf update\u300d\u3092\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br><br>CentOS 8.0 \u304b\u3089\u79fb\u884c\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u6b21\u306e\u30d9\u30fc\u30b9 URL \u3092\u624b\u52d5\u3067\u4fee\u6b63\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br>\u300cdnf update\u300d\u3092\u5b9f\u884c\u3059\u308b\u524d\u306b CentOS \u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<br>\u300c\u300d<br>sed -i -r \\<br>    -e \u306e!^\u30df\u30e9\u30fc\u30ea\u30b9\u30c8=!#\u30df\u30e9\u30fc\u30ea\u30b9\u30c8=!' \\<br>    -e \u306e!^#?baseurl=http:\/\/(mirror|vault).centos.org\/\\$contentdir\/\\$releasever\/!baseurl=https:\/\/dl.rockylinux.org\/vault\/centos\/8.5 .2111\/!i' \\<br>    \/etc\/yum.repos.d\/CentOS-*.repo<\/pre>\n\n\n<p>CentOS8 \u306e\u307e\u307e\u3067\u4f7f\u3044\u7d9a\u3051\u3066\u308b\u30b7\u30b9\u30c6\u30e0\u306f\u3001CentOS8 Stream\u306b\u79fb\u884c\u3055\u305b\u308b\u304b\u3001<br \/>\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u66f8\u304d\u63db\u3048\u3066\u3001\u6700\u65b0\u72b6\u614b\u306b\u3057\u3066\u304b\u3089\u5b9f\u65bd\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u306d\u3002<br \/>\u3053\u3053\u306e\u30b7\u30b9\u30c6\u30e0\u306f\u3001CentOS8 Stream \u306e\u6700\u65b0\u3067\u3059\u304c\u3001\u6b21\u306b\u5b9f\u65bd\u3059\u308b\u30b5\u30fc\u30d0\u306f\u3001<br \/>CentOS8\u306e\u307e\u307e\u3067\u3059\u3001\u4e0a\u8a18\u4f5c\u696d\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u306d\u3002\u30fb\u30fb\u30fb\u30fb\u6b21<\/p>\n\n\n<pre class=\"wp-block-preformatted has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-e87082b1a3eaddf48c63b0682900592c\" style=\"font-style:normal;font-weight:600\">#### Custom replacements of default repositories<br><br>This script expects the **original repository configuration being present, as<br>well as enabled** (i.e. for CentOS the `baseos` repo configuration in the<br>`\/etc\/yum.repos.d\/CentOS-Linux-BaseOS.repo` file has to be present and enabled).<br>Also make sure that there are **no other repositories** which could interfere<br>with the original configuration.<br><br>Any distribution that has had its core repositories altered, removed, duplicated<br>or overridden may cause migrate2rocky to break or corrupt the system when run.<br>Any attempt to migrate such systems, even after reversing the changes made by<br>such software, is not supported in any way. In all cases you should backup your<br>system before using migrate2rocky and USE AT YOUR OWN RISK.<br><br>This especially happens on systems configured with a centralized package<br>management like Katello (RedHat Satellite 6) or Uyuni (RedHat Satellite 5, SUSE<br>Manager).<br><br>#### \u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30ab\u30b9\u30bf\u30e0\u7f6e\u63db<br><br>\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u3001**\u5143\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u8a2d\u5b9a\u304c\u5b58\u5728\u3059\u308b\u3053\u3068\u3092\u60f3\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<br>\u6709\u52b9** (\u3064\u307e\u308a\u3001CentOS \u306e\u5834\u5408\u306f\u3001<br>`\/etc\/yum.repos.d\/CentOS-Linux-BaseOS.repo` \u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3057\u3001\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059)\u3002<br>\u307e\u305f\u3001\u5e72\u6e09\u3059\u308b\u53ef\u80fd\u6027\u306e\u3042\u308b**\u4ed6\u306e\u30ea\u30dd\u30b8\u30c8\u30ea**\u304c\u306a\u3044\u3053\u3068\u3082\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br>\u5143\u306e\u69cb\u6210\u3067\u3002<br><br>\u30b3\u30a2 \u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u5909\u66f4\u3001\u524a\u9664\u3001\u8907\u88fd\u3055\u308c\u305f\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3<br>\u307e\u305f\u306f\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3059\u308b\u3068\u3001\u5b9f\u884c\u6642\u306b mitigate2rocky \u304c\u58ca\u308c\u305f\u308a\u3001\u30b7\u30b9\u30c6\u30e0\u304c\u7834\u640d\u3057\u305f\u308a\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<br>\u5909\u66f4\u3092\u5143\u306b\u623b\u3057\u305f\u5f8c\u3067\u3082\u3001\u305d\u306e\u3088\u3046\u306a\u30b7\u30b9\u30c6\u30e0\u3092\u79fb\u884c\u3057\u3088\u3046\u3068\u3059\u308b\u8a66\u307f<br>\u3053\u306e\u3088\u3046\u306a\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306f\u3001\u3044\u304b\u306a\u308b\u5f62\u3067\u3082\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u307e\u305b\u3093\u3002\u3069\u306e\u3088\u3046\u306a\u5834\u5408\u3067\u3082\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br>mitigate2rocky \u3092\u4f7f\u7528\u3059\u308b\u524d\u306b\u30b7\u30b9\u30c6\u30e0\u3092\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u81ea\u5df1\u8cac\u4efb\u3067\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br><br>\u3053\u308c\u306f\u7279\u306b\u96c6\u4e2d\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u69cb\u6210\u3055\u308c\u305f\u30b7\u30b9\u30c6\u30e0\u3067\u767a\u751f\u3057\u307e\u3059\u3002<br>Katello (RedHat Satellite 6) \u307e\u305f\u306f Uyuni (RedHat Satellite 5\u3001SUSE) \u306a\u3069\u306e\u7ba1\u7406<br>\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\uff09\u3002<\/pre>\n\n\n<p>\u3053\u308c\u306f\u3001\u53b3\u3057\u3044\u4e8b\u304c\u66f8\u304b\u308c\u3066\u307e\u3059\u306d\u3002<br \/>\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306f\u5909\u66f4\u3057\u3066\u307e\u305b\u3093\u305f\u3001\u8ffd\u52a0\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307e\u3059\u3002<br \/>\u4f5c\u696d\u524d\u306b\u3001\u8ffd\u52a0\u3057\u305f\u5206\u3092\u524a\u9664\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u305d\u3046\u3067\u3059\u3002\u30fb\u30fb\u30fb\u30fb\u6b21<\/p>\n\n\n<pre class=\"wp-block-preformatted has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-de4f3b05a7a0cb760f9e2ac02fe05118\" style=\"font-style:normal;font-weight:600\">#### Grub still shows kernel entries from previous installation<br><br>This is normal.  The running kernel cannot be safely removed when migrate2rocky<br>is run.  The RockyLinux kernel should come up as the default highlighted kernel<br>on reboot but the other ones will remain until they are removed or replaced by<br>newer kernels.  If you want you can manually remove the old kernels after reboot<br>with dnf or rpm.<\/pre>\n\n\n<p>\u307b\u307b\uff5e\uff01<br \/>\u79fb\u884c\u304c\u6210\u529f\u3057\u3066\u3082\u3001CentOS8\u306e\u6700\u65b0\u30ab\u30fc\u30cd\u30eb\u304c\u6b8b\u308b\u3093\u3067\u3059\u306d\u3002<br \/>dnf \u304b rpm \u3067\u524a\u9664\u3067\u304d\u308b\u3068\u306a\uff01\uff01\u3000\u30e1\u30e2\u30e1\u30e2\uff08\u3053\u308c\u306d\uff09<\/p>\n<p>\u3057\u304b\u3057\u3001\u3044\u308d\u3044\u308d\u624b\u629c\u304d\u3057\u3066\u307e\u3057\u305f\u306d\u3001\u3084\u3063\u3071\u308a\u300cReadme\u300d\u306f\u4e8b\u524d\u306b\u78ba\u8a8d\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u3063\u3066\u305f\u306e\u3067\u623b\u308c\u307e\u3057\u305f\u304c\u3001\u30de\u30cb\u30e5\u30a2\u30eb\u7b49\u306f\u30c1\u30e3\u30f3\u3068\u8aad\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\u3060\u3044\u305f\u3044\u3001\u6ce8\u610f\u4e8b\u9805\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/><strong>1.\u5b9f\u884c\u524d\u306b .\/migrate2rocky.sh -V \u3067\u30d9\u30ea\u30d5\u30a1\u30a4\u3092\u884c\u3046\u3002<\/strong><br \/><strong>2.\u53e4\u3044\u30ab\u30fc\u30cd\u30eb\u3092\u5168\u3066\u524a\u9664\u3059\u308b\u3002<\/strong><br \/><strong>3.\u30ea\u30e2\u30fc\u30c8\u74b0\u5883\u3067\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u5b9f\u65bd\u3057\u306a\u3044\u3002<\/strong><br \/><strong>4.\u8ffd\u52a0\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u524a\u9664\u3059\u308b\u3002<\/strong><\/p>\n<p>\u4e0a\u8a18\u3092\u5b9f\u65bd\u3057\u3066\u3001\u518d\u5ea6\u30c8\u30e9\u30a4\u3057\u3066\u898b\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u3087\u3046\u3002<br \/>\u4eca\u65e5\u306f\u3053\u3053\u307e\u3067\u3002<\/p>","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\uff12\u56de\u76ee\u306e\u30ea\u30cb\u30e5\u30fc\u30a2\u30eb\u8a08\u753b\u306e\u6295\u7a3f\u3067\u3059\u3002\u73fe\u5728\u306e\u30cf\u30fc\u30c9\u304c\u5b89\u5b9a\u3057\u3066\u52d5\u3044\u3066\u304f\u308c\u3066\u308b\u306e\u3067\u3001Second Ethernet \u4ee5\u5916\u306f\u3001\u307b\u307c\u540c\u3058\u69cb\u6210\u306b\u3057\u307e\u3057\u305f\u3002\u300c\u30b5\u30fc\u30d0\u30fc\u7d44\u307f\u7acb\u3066\u30823\u5e74\u524d\u3068\u540c\u3058\u3067\u3059\u300d\u3068\u8a00\u3046\u4e8b\u3067\u3001OS\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u306a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":7899,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-7924","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-7"],"_links":{"self":[{"href":"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-json\/wp\/v2\/posts\/7924","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-json\/wp\/v2\/comments?post=7924"}],"version-history":[{"count":5,"href":"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-json\/wp\/v2\/posts\/7924\/revisions"}],"predecessor-version":[{"id":7946,"href":"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-json\/wp\/v2\/posts\/7924\/revisions\/7946"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-json\/wp\/v2\/media\/7899"}],"wp:attachment":[{"href":"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-json\/wp\/v2\/media?parent=7924"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-json\/wp\/v2\/categories?post=7924"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-json\/wp\/v2\/tags?post=7924"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}