<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: R82.10 snapshot revert error in General Topics</title>
    <link>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/278332#M46448</link>
    <description>&lt;P&gt;Wrapping this up, the &lt;FONT face="andale mono,times"&gt;systemctl&lt;/FONT&gt; and &lt;FONT face="andale mono,times"&gt;reboot&lt;/FONT&gt; script issue wasn't a Blink or JHF error after all. &amp;nbsp;I was wrong on that. Apologies for the noise on the board.&lt;/P&gt;
&lt;P&gt;All was not lost, as there was some useful info in the diagnostic path, including the searching through the Blink images versus JHF packages. Noticing the Deployment Agent's own reboot handler was also useful info, even as footnote.&lt;/P&gt;
&lt;P&gt;There is still an issue regarding the Grub menu maintenance password as well as the Gaia snapshot name format. &amp;nbsp;I'll take these up with TAC separately.&lt;/P&gt;
&lt;P&gt;Thanks to&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/71054"&gt;@emmap&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/27871"&gt;@Bob_Zimmerman&lt;/a&gt;&amp;nbsp;for your contributions, as well as eyes-and-ears.&lt;/P&gt;
&lt;P&gt;"And now back to your regularly-scheduled program, already in progress..."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jun 2026 14:41:30 GMT</pubDate>
    <dc:creator>Duane_Toler</dc:creator>
    <dc:date>2026-06-11T14:41:30Z</dc:date>
    <item>
      <title>R82.10 snapshot revert error</title>
      <link>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277611#M46255</link>
      <description>&lt;P&gt;So this is new...&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;gateway01&amp;gt; set snapshot-onetime revert target lvm name Blink_R82.10_402
NMSNAP0042  Bad snapshot name. Snapshot name may only contain up to 15 digits, letters and underscores (_)
&lt;/LI-CODE&gt;
&lt;P&gt;3950 appliance, R82.10, take 271&lt;/P&gt;
&lt;P&gt;Had an in-place Blink upgrade to take 467 fail, but now I can't revert back to try it again. &amp;nbsp;This worked on 2 other 3900s (one 3950 and one 3980). &amp;nbsp;TAC case is open for the upgrade failure issue, tho.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2026 02:08:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277611#M46255</guid>
      <dc:creator>Duane_Toler</dc:creator>
      <dc:date>2026-05-29T02:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: R82.10 snapshot revert error</title>
      <link>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277613#M46256</link>
      <description>&lt;P&gt;Interesting, never seen that before. Hope they can sort it out...but, is that actual snapshot name?&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2026 02:49:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277613#M46256</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2026-05-29T02:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: R82.10 snapshot revert error</title>
      <link>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277614#M46257</link>
      <description>&lt;P&gt;yep!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;gateway01&amp;gt; show snapshots
Restore points:
---------------
Blink_R82.10_402
&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 29 May 2026 02:51:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277614#M46257</guid>
      <dc:creator>Duane_Toler</dc:creator>
      <dc:date>2026-05-29T02:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: R82.10 snapshot revert error</title>
      <link>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277615#M46258</link>
      <description>&lt;P&gt;It doesn't like the full stop/decimal point in the name, I'd guess. Though really it shouldn't have let you take it in the first place if that's the case.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2026 05:37:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277615#M46258</guid>
      <dc:creator>emmap</dc:creator>
      <dc:date>2026-05-29T05:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: R82.10 snapshot revert error</title>
      <link>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277627#M46259</link>
      <description>&lt;P&gt;This was the snapshot created by the Blink upgrade, automatically. &amp;nbsp;The manual command indeed refuses to make one with that name pattern.&lt;/P&gt;
&lt;P&gt;On an R82.10 Take 467 gateway:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;gateway02&amp;gt; add snapshot-onetime name Foo_R82.10 description FooSnap 
NMSNAP9999  Snapshot name may only contain digits, letters and underscores. Maximum 255 characters
&lt;/LI-CODE&gt;
&lt;P&gt;Looks like the Left Thumb didn't talk to the Left Pinky about this. &amp;nbsp;Oops. &amp;nbsp;TAC case again?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2026 13:03:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277627#M46259</guid>
      <dc:creator>Duane_Toler</dc:creator>
      <dc:date>2026-05-29T13:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: R82.10 snapshot revert error</title>
      <link>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277631#M46261</link>
      <description>&lt;P&gt;Maybe try reverting in GRUB? It may have fewer restrictions.&lt;/P&gt;
&lt;P&gt;That said, I've had major snapshot problems on two separate systems, now. I've taken a snapshot on R82, upgraded the system to R82.10, reverted to the snapshot, and wound up with a totally hosed system. Both would hang at different points during boot. Went into single-user, and lv_current was 100% used.&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2026 14:31:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277631#M46261</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2026-05-29T14:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: R82.10 snapshot revert error</title>
      <link>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277633#M46262</link>
      <description>&lt;P&gt;Another bonus, that I didn't check first, is that the snapshot name from a Blink upgrade is 16 characters. &amp;nbsp;Oops x2. &amp;nbsp;The TAC person said no one over there knows how to recover from such a situation as an "interrupted" upgrade like this.&lt;/P&gt;
&lt;P&gt;Deployment Agent as a whole is angry because /mnt/fcd is still present, and has a path opt/ which contains the various Deployment Agent logs. &amp;nbsp;These were copied over by the installer from /opt/CPInstLog, according to the last line of the log:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[2026-05-28 - 20:15:24][294723 295414]:Copying CPInstLog dir
[2026-05-28 - 20:15:24][294723 295414]:about to copy dir /opt/CPInstLog/ to /mnt/fcd//opt
[2026-05-28 - 20:15:24][294723 295414]:About to execute command: /bin/cp -af /opt/CPInstLog/ /mnt/fcd//opt
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;The appliance rebooted, but since the process died, it can't recover.&lt;/P&gt;
&lt;P&gt;I'm going to schedule a plain reboot tonight with the customer; perhaps it'll pick up where it left off and try Stage 2 again...? maybe?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2026 16:23:21 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277633#M46262</guid>
      <dc:creator>Duane_Toler</dc:creator>
      <dc:date>2026-05-29T16:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: R82.10 snapshot revert error</title>
      <link>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277634#M46263</link>
      <description>&lt;P&gt;Hope all goes well.&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2026 17:08:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277634#M46263</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2026-05-29T17:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: R82.10 snapshot revert error</title>
      <link>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277777#M46275</link>
      <description>&lt;P&gt;That sounds very much like TAC needs to be escalating that information to the Blink owners internally.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2026 02:29:04 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277777#M46275</guid>
      <dc:creator>emmap</dc:creator>
      <dc:date>2026-06-03T02:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: R82.10 snapshot revert error</title>
      <link>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277780#M46276</link>
      <description>&lt;P&gt;Yep, they're waiting on me for some follow-up info which I was able to collect today. &amp;nbsp;Short version:&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;1. The gateway actually &amp;nbsp;never even rebooted, but I thought it did! &amp;nbsp;It looked like it did, tho. &amp;nbsp;When we pulled the power cable to hard cycle, it booted up and continued onwards to finish the upgrade as expected. &amp;nbsp;Everything seems relatively fine after that now.&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;2. Reboot and shutdown scripts on R82.10 appear to be nothing but a NO-OP. &amp;nbsp;The scripts shutdown FWD, shutdown the interfaces, then....exit. &amp;nbsp;I'm not sure how reboot signals are expected to be handled, but I don't see anywhere this is happening. &amp;nbsp;We couldn't reboot it from the 'reboot' or 'shutdown -r now' commands. &amp;nbsp;Something is amiss here. &amp;nbsp;This is why we had to do the hard power cycle above.&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;3. "This is not the systemctl you're looking for". &amp;nbsp;/bin/systemctl is just a wrapper Bash script that calls the SysV init scripts. &amp;nbsp;Um.. what? &amp;nbsp;Systemd appears to be running things from the places we expect, which is how it picked up the post-boot script.&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;I also had a Jumbo HFA install fail tonight on a second gateway. &amp;nbsp;It was already Take 467 with Jumbo HFA 6; I did the initial re-install/upgrade before putting the gateway into service. &amp;nbsp;This one clearly rebooted successfully at the time. &amp;nbsp;Tonight, I was installing Jumbo HFA 19 (for a VPN degradation issue they're having, that seems to be addressed in JHF 19).&amp;nbsp;&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;It seems to have cranked the CPU and some system processes, then ... died. &amp;nbsp;It was at the 85% level of "copying files..." when it just died. &amp;nbsp;No console output when the customer connected... dunno if it even rebooted. &amp;nbsp;The grub2 password we set also didn't work, so no snapshot revert option, no maintenance mode, nothing. &amp;nbsp;Had no choice but to do factory reset.&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;In short...this has been a very painful experience with the 3900s. &amp;nbsp;Nothing positive to say about these yet.&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;EDIT: &amp;nbsp;I'm leaving the above, as a public confession of my sins and guilt. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &amp;nbsp;I found the issue here and it's... sigh... embarrassingly awful. The &lt;FONT face="andale mono,times"&gt;systemctl&lt;/FONT&gt; script issue wasn't with the JHF or the Blink image after all. &amp;nbsp;I'm gonna update the TAC SR as well. We had a deployment playbook that mis-categorized the 3900s and applied the wrong package to them.&lt;/P&gt;
&lt;P&gt;I'm gonna update the other messages here as well.&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/27871"&gt;@Bob_Zimmerman&lt;/a&gt;&amp;nbsp; for your verification info as well! That was helpful to see!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2026 14:26:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277780#M46276</guid>
      <dc:creator>Duane_Toler</dc:creator>
      <dc:date>2026-06-11T14:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: R82.10 snapshot revert error</title>
      <link>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277781#M46277</link>
      <description>&lt;P&gt;What was your upgrade path here? Was it raw R82.10 build 271 that you then upgraded with the specific 3900 blink package?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2026 03:18:06 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277781#M46277</guid>
      <dc:creator>emmap</dc:creator>
      <dc:date>2026-06-03T03:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: R82.10 snapshot revert error</title>
      <link>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277810#M46284</link>
      <description>&lt;P&gt;Out-of-box, it was the factory original Take 271 (GA1). I then installed the Quantum Force 3900 Take 22 hotfix; (GA2 wasn't available then). &amp;nbsp;Then I did Blink in-place upgrade to Take 467 (GA2) when it came available with Jumbo HFA Take 6 (new LVM volume anyway, with LV snapshot of 271). &amp;nbsp;That process went just fine originally, just as expected, and the gateway was operating for a few weeks successfully. &amp;nbsp;Very unremarkable, as it should be.&lt;/P&gt;
&lt;P&gt;Now, I went to install the Jumbo HFA 19 package like any other Jumbo HFA would. &amp;nbsp;I always run verifier before doing anything, too, and verifier succeeded with "install.applicable: true" and no warnings.&lt;/P&gt;
&lt;P&gt;It went through the routine, then got to the meaningless 85% with message "Copying files". &amp;nbsp;Sat there for a long time, which is fine... I always see it sit here with no updates. &amp;nbsp;I played a card game of "Go Fish" with my daughter over dinner to pass the time. &amp;nbsp;Eventually, the system became unresponsive... then my SSH session was killed and that was the end. &amp;nbsp;No remote access, so customer traveled to the office. &amp;nbsp;After about an hour, customer connected console cable but got no output. We let it sit for several more minutes but still nothing.&lt;/P&gt;
&lt;P&gt;Had no meaningful option but to power cycle it. &amp;nbsp;I hated to do it, but I knew we could revert to some prior snapshot. &amp;nbsp;Then that turned out to be a bad choice. &amp;nbsp;None of our input choices worked, even tho the CLISH config showed "set grub2-password-hash&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;grub.pbkdf2.sha512.10000.&amp;lt;string&amp;gt;". &amp;nbsp;I know what I set that to when I did that on the original Gaia FTW of the appliance initial install. &amp;nbsp;I copied it from another CLISH config where I set it manually at the CLI, and typed in the password string.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I'll update my write-up for TAC with this info, too.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: This message is still relevant, because we still had the Grub boot menu issue despite the above&amp;nbsp;&lt;FONT face="andale mono,times"&gt;systemctl&lt;/FONT&gt; script issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2026 14:28:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277810#M46284</guid>
      <dc:creator>Duane_Toler</dc:creator>
      <dc:date>2026-06-11T14:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: R82.10 snapshot revert error</title>
      <link>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277821#M46285</link>
      <description>&lt;P&gt;I'm also gonna ask the customer to hang back one day at the office to see if we can do our own reboot tests and sanity-check the grub password mess. &amp;nbsp;Too bad I don't have one of these on hand to test myself. &amp;nbsp;With all these things, I'd bang on it and beat it to death with tests. &amp;nbsp;I would've imagined R&amp;amp;D had done similar, but maybe they were pressured to get them shipped out the door... "we'll fix it in post! HFA-4-evah!".&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2026 21:14:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277821#M46285</guid>
      <dc:creator>Duane_Toler</dc:creator>
      <dc:date>2026-06-03T21:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: R82.10 snapshot revert error</title>
      <link>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277879#M46299</link>
      <description>&lt;P&gt;EDIT: the below script info is not relevant now, but I'm leaving it here because the diagnostic path itself is still useful; even if the end result was bogus.&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;Did the confirmation test last night. &amp;nbsp;&lt;FONT face="andale mono,times"&gt;reboot&lt;/FONT&gt; and &lt;FONT face="andale mono,times"&gt;shutdown&lt;/FONT&gt; are broken on R82.10.&lt;/STRIKE&gt;&lt;/P&gt;
&lt;DIV&gt;&lt;LI-CODE lang="markup"&gt;[Expert@gateway01:0]# which reboot
alias reboot='/bin/system_reboot'
/bin/system_reboot

[Expert@gateway01:0]# ls -l /bin/system_reboot 
-rwxr-xr-x 1 admin root 3996 May  4 08:39 /bin/system_reboot

[Expert@gateway01:0]# file /bin/system_reboot 
/bin/system_reboot: POSIX shell script, ASCII text executable
&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRIKE&gt;So "reboot" is just a link &amp;nbsp;to a shell script. &amp;nbsp;Interesting.&amp;nbsp;&lt;/STRIKE&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRIKE&gt;(omitting the ceremonial parts)&lt;/STRIKE&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="markup"&gt;[Expert@gateway01:0]# cat /bin/system_reboot 
#!/bin/sh
#
# reboot wrapper

#
# ...skip...
#

function kill_fwd_gracefully {
# skip ...
#
cpwd_admin stop -name FWD -path "$FWDIR/bin/fw" -command "fw kill fwd" &amp;amp; &amp;gt; /dev/null 

}

function down_and_reboot {

cluster_down
sleep 3
if $isVSX; then
ensure_context_is_VS0
fi
logger "Set interfaces down before reboot"

for x in $(get_phys_ifs) ; do
$IP link set dev $x down  ## INTERFACES GO DOWN; NO REMOTE ACCESS
done

if $isVSX; then
down_vs_interfaces
fi

kill_fwd_gracefully
/sbin/reboot  ### &amp;lt;&amp;lt;&amp;lt;&amp;lt; HERE

}

###
# skip
###

## prompt Are you sure?(y/n)
askreally || {
  echo "Reboot aborted." 2&amp;gt;&amp;amp;1
  exit 1
}

down_and_reboot  # call above function

exit 0   ##&amp;lt;&amp;lt;&amp;lt; HERE 2
&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRIKE&gt;The "HERE" comments show where the sequence goes wrong. &amp;nbsp;So the script calls another script, which is a link to... what?! a fake &lt;FONT face="andale mono,times"&gt;systemctl&lt;/FONT&gt; script in Bash!?&lt;/STRIKE&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="markup"&gt;[Expert@gateway01:0]# file /sbin/reboot 
/sbin/reboot: symbolic link to ../bin/systemctl

[Expert@gateway01:0]# file /bin/systemctl 
/bin/systemctl: Bourne-Again shell script, ASCII text executable


[Expert@gateway01:0]# cat /bin/systemctl 
#!/bin/bash
#

service_name=${BASH_ARGV[0]}            ## Processes arguments in reverse order
service_name=${service_name%%.service}  ## creates a SysV-style system service

for opt in ${BASH_ARGV[@]}
do
  case $opt in
    enable)
      systemd_script=$(grep ExecStart= /usr/lib/systemd/system/${service_name}.service|cut -f 2 -d '='|cut -f 1 -d ' ')
      init_script=${systemd_script%%.sh}
      init_script=${init_script/*\//}
      cp $systemd_script /etc/rc.d/init.d/${init_script}

      chkconfig --add ${service_name}
      chkconfig ${service_name} on
    ;;

    disable)
      systemd_script=$(grep ExecStart= /usr/lib/systemd/system/${service_name}.service|cut -f 2 -d '='|cut -f 1 -d ' ')
      init_script=${systemd_script%%.sh}
      init_script=${init_script/*\//}
      chkconfig ${service_name} off
      chkconfig --del ${service_name}

      rm /etc/rc.d/init.d/${init_script}
    ;;

    start)
      service ${service_name} start
    ;;

    stop)
      service ${service_name} stop
    ;;

    *)   ### DEFAULT HANDLER for no arguments
    ;;   ### Does nothing
  esac
done

### END OF SCRIPT ...Nothing happens here?
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;Uh... this script does nothing. &amp;nbsp;It does a head-fake for a "systemctl" command that just twists itself back to a SysV init script. &amp;nbsp;For "reboot", it reaches the default handler, does nothing, then the end of the script exits, &amp;nbsp;returns back to the caller script, which also does an "exit 0", but only after it happily shuts down the interfaces, locking you out remotely! &amp;nbsp;Now you call the customer, or make the drive yourself, to either pull the power or connect a console cable!&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;[EDIT: The below is still correct; the Gaia Deployment Agent does use its own reboot handler; I did discover that.]&lt;/P&gt;
&lt;P&gt;You can login at console and give PID 1 the "kill -SIGINT 1" command and that forces a reboot. &amp;nbsp;PID 1 is now &lt;FONT face="andale mono,times"&gt;systemd&lt;/FONT&gt;, not &lt;FONT face="andale mono,times"&gt;init&lt;/FONT&gt;, and SIGINT (signal 2) causes &lt;FONT face="andale mono,times"&gt;systemd&lt;/FONT&gt; to run its own default reboot handler, which does work successfully. &amp;nbsp;Meanwhile, all of the expected systemctl commands are fake and just &lt;FONT face="andale mono,times"&gt;exit 0&lt;/FONT&gt;. &amp;nbsp;I sent this to my TAC case last night.&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;This scenario exists on both GA1 and GA2. &amp;nbsp;Can someone escalate this to R&amp;amp;D?&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;As for the Deployment Agent, this must use its own reboot handler after packages are installed; &lt;STRIKE&gt;that has to be the only way I was able to install GA2 on 2 of these gateways.&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Jun 2026 14:32:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277879#M46299</guid>
      <dc:creator>Duane_Toler</dc:creator>
      <dc:date>2026-06-11T14:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: R82.10 snapshot revert error</title>
      <link>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277883#M46301</link>
      <description>&lt;P&gt;I just checked a 3920 and /bin/systemctl is an ELF for aarch64:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@SomeFirewall:0]# clish -c "show asset system" | egrep "^[PM]"
Platform: BT-91-00
Model: CheckPoint 3920

[Expert@SomeFirewall:0]# file /sbin/{halt,init,poweroff,reboot,shutdown}
/sbin/halt:     symbolic link to ../bin/systemctl
/sbin/init:     symbolic link to ../lib/systemd/systemd
/sbin/poweroff: symbolic link to ../bin/systemctl
/sbin/reboot:   symbolic link to ../bin/systemctl
/sbin/shutdown: symbolic link to ../bin/systemctl

[Expert@SomeFirewall:0]# file /bin/systemctl 
/bin/systemctl: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, BuildID[sha1]=7d40af13734da760dc7294191cb8e75d21f6159f, stripped

[Expert@SomeFirewall:0]# file /lib/systemd/systemd
/lib/systemd/systemd: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, BuildID[sha1]=a60ba79171277846207d64cbed8378406ca6e955, stripped&lt;/LI-CODE&gt;
&lt;P&gt;Same on a 3200 running R82.10 (though obviously x86-64 instead of aarch64). Not doubting what you see, but providing a data point that what you see doesn't seem to always be the case. Not sure what the difference might be between our environments.&lt;/P&gt;
&lt;P&gt;'init 6' should give you a clean reboot from systemd directly without needing systemctl. Tested on the 3200.&lt;/P&gt;
&lt;P&gt;You should always be able to force a reboot with 'echo b &amp;gt;/proc/sysrq-trigger'. This doesn't stop services or sync filesystems, so could result in data loss (same as pulling the power cord).&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2026 15:29:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277883#M46301</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2026-06-05T15:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: R82.10 snapshot revert error</title>
      <link>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277884#M46302</link>
      <description>&lt;P&gt;These gateways are 3950 and 3980, but still aarch64:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@gateway01:0]# clish -c "show asset system"
Platform: BT-92-00
Model: CheckPoint 3950
Serial Number: WA25804857
CPU Model: Arm..Neoverse..(N2)
CPU Frequency: 2100 MHz
Number of Cores: 8
CPU Hyperthreading: Disabled

[Expert@gateway02:0]# clish -c "show asset system"
Platform: BT-93-00
Model: CheckPoint 3980
Serial Number: WA25400346
CPU Model: Arm..Neoverse..(N2)
CPU Frequency: 2700 MHz
Number of Cores: 8
CPU Hyperthreading: Disabled
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's wild that your systemctl is an ELF binary!! I don't have a 3920 to compare, tho. &amp;nbsp;How in the world did my 3 gateways turn out differently?!? Very wild!&lt;/P&gt;
&lt;P&gt;"init 6" doesn't work because PID 1 is now "systemd" not "init" anymore. &amp;nbsp;I definitely tried that, tho. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;R82.00 has "'/sbin/reboot" linked to an ELF binary for "/sbin/halt":&lt;/STRIKE&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@mgmt01:0]# fw ver
This is Check Point's software version R82 - Build 019
[Expert@mgmt01:0]# file /sbin/reboot 
/sbin/reboot: symbolic link to `halt'
[Expert@mgmt01:0]# file /sbin/halt 
/sbin/halt: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.16, stripped
[Expert@mgmt01:0]# 
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: Yes I did send updated CPINFO to the TAC SR, and the person said they'd file a request with R&amp;amp;D. &amp;nbsp;This is going to be an "interesting" case...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2026 14:32:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277884#M46302</guid>
      <dc:creator>Duane_Toler</dc:creator>
      <dc:date>2026-06-11T14:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: R82.10 snapshot revert error</title>
      <link>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277887#M46303</link>
      <description>&lt;P&gt;'init 6' definitely works on the R82.10 systems I've tried (two now, including a 3920). It doesn't give any feedback in the terminal where you run it, the system just reboots after 30 seconds or so.&lt;/P&gt;
&lt;P&gt;systemd is a nondeterministic trainwreck, so it wouldn't exactly surprise me if it simply failed to reboot on the systems you tried. 'echo b &amp;gt;/proc/sysrq-trigger' only depends on the kernel, so if it's running well enough to let you type commands in a shell, it should work.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2026 16:36:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277887#M46303</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2026-06-05T16:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: R82.10 snapshot revert error</title>
      <link>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277888#M46304</link>
      <description>&lt;P&gt;Odd. &amp;nbsp;What is your pid 1?&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@gw01:0]# ps -p 1
    PID TTY          TIME CMD
      1 ?        00:00:00 systemd
[Expert@gw01:0]# 
&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 05 Jun 2026 16:43:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277888#M46304</guid>
      <dc:creator>Duane_Toler</dc:creator>
      <dc:date>2026-06-05T16:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: R82.10 snapshot revert error</title>
      <link>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277891#M46305</link>
      <description>&lt;P&gt;Connected via a serial server, it gives more output:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@DallasSC:0]# clish -c "show asset system" | egrep "^[PM]"
Platform: PB-10-00
Model: Check Point 3200

[Expert@DallasSC:0]# fwm ver
This is Check Point Security Management Server R82.10 - Build 003

[Expert@DallasSC:0]# cpinfo -y all 2&amp;gt;&amp;amp;1 | grep "JUMBO_HF_MAIN" | uniq
	HOTFIX_R82_10_JUMBO_HF_MAIN	Take:  19
	BUNDLE_R82_10_JUMBO_HF_MAIN	Take:  19

[Expert@DallasSC:0]# ps -p 1
    PID TTY          TIME CMD
      1 ?        00:00:03 systemd

[Expert@DallasSC:0]# which init
/sbin/init

[Expert@DallasSC:0]# file $(which init)
/sbin/init: symbolic link to ../lib/systemd/systemd

[Expert@DallasSC:0]# init 6

[Expert@DallasSC:0]# [ 6391.698495] bootsplashd[701]: looking up window text geometry
[ 6391.698619] bootsplashd[701]: window is now 80x25 text cells
[ 6391.878995] wrp.sh[173080]: Removing wrp module
[ 6392.032987] blkdeactivate[173063]: Deactivating block devices:
[ 6392.065274] blkdeactivate[173063]:   [SKIP]: unmount of vg_splat-lv_log (dm-1) mounted on /var/log
[ 6392.065641] blkdeactivate[173063]:   [SKIP]: unmount of vg_splat-lv_current (dm-0) mounted on /
[ 6392.352824] cpboot[173209]: cpwd_admin:
[ 6392.353036] cpboot[173209]: Process PROBEMOND isn't monitored by cpWatchDog. Stop request aborts
...&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 05 Jun 2026 17:22:26 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277891#M46305</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2026-06-05T17:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: R82.10 snapshot revert error</title>
      <link>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277893#M46306</link>
      <description>&lt;P&gt;hah! &amp;nbsp;*THAT* we agree on:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@gw01:0]# which init
/sbin/init

[Expert@ gw01:0]# ls -l /sbin/init
lrwxrwxrwx 1 admin root 22 Jun  2 21:11 /sbin/init -&amp;gt; ../lib/systemd/systemd

[Expert@ gw01:0]# file /usr/lib/systemd/systemd
/usr/lib/systemd/systemd: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, BuildID[sha1]=a60ba79171277846207d64cbed8378406ca6e955, stripped
&lt;/LI-CODE&gt;
&lt;P&gt;Ok, so this *might* have worked on that one gateway where I tried it, but this was in a state where the Blink installer failed reboot following the stage 1 process, and I believe Deployment Agent (or something) was eating the reboot signal.&lt;/P&gt;
&lt;P&gt;So my "that didn't work" statement needed a "*" on it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2026 17:27:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/R82-10-snapshot-revert-error/m-p/277893#M46306</guid>
      <dc:creator>Duane_Toler</dc:creator>
      <dc:date>2026-06-05T17:27:34Z</dc:date>
    </item>
  </channel>
</rss>

