View Single Post
wicket's Avatar
Posts: 634 | Thanked: 3,266 times | Joined on May 2010 @ Colombia
#49
Originally Posted by marmistrz View Post
ok, I tried the script as uploaded in #45, something weird happens:

Code:
The following packages will be REMOVED:
  systemd-sysv
The following NEW packages will be installed:
  firmware-ti-connectivity sysvinit-core
0 upgraded, 2 newly installed, 1 to remove and 1 not upgraded.
Need to get 986 kB of archives.
After this operation, 3938 kB of additional disk space will be used.
Get:1 http://httpredir.debian.org/debian/ jessie/main sysvinit-core armhf 2.88dsf-59 [129 kB]
Get:2 http://httpredir.debian.org/debian/ jessie/non-free firmware-ti-connectivity all 0.43 [857 kB]
Fetched 986 kB in 3s (315 kB/s)                  
Preconfiguring packages ...
dpkg: systemd-sysv: dependency problems, but removing anyway as you requested:
 init depends on systemd-sysv | sysvinit-core | upstart; however:
  Package systemd-sysv is to be removed.
  Package sysvinit-core is not installed.
  Package upstart is not installed.

(Reading database ... 16312 files and directories currently installed.)
Removing systemd-sysv (215-17+deb8u2) ...
Processing triggers for man-db (2.7.0.2-5) ...
Selecting previously unselected package sysvinit-core.
(Reading database ... 16295 files and directories currently installed.)
Preparing to unpack .../sysvinit-core_2.88dsf-59_armhf.deb ...
Unpacking sysvinit-core (2.88dsf-59) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up sysvinit-core (2.88dsf-59) ...
Not restarting sysvinit
Selecting previously unselected package firmware-ti-connectivity.
(Reading database ... 16320 files and directories currently installed.)
Preparing to unpack .../firmware-ti-connectivity_0.43_all.deb ...
Unpacking firmware-ti-connectivity (0.43) ...
Setting up firmware-ti-connectivity (0.43) ...

Stage 1 of installation complete.
Copy configure_u-boot.sh to the N900 and execute it to complete installation.
Installation failed
I'll setup ubiboot later on.
In DebiaN900, the installation of System V init and removal of systemd is intentional. You can clear the $INIT variable in debian.conf if you want to keep systemd.

The reason is says "Installation failed" is because you removed this line so the script automatically calls the clean_up() function when it exits.

If you want to learn more about the trap shell built-in utility and how it works, you can find the POSIX definition here.
__________________
DebiaN900 - Native Debian on the N900. Deprecated in favour of Maemo Leste.

Maemo Leste for N950 and N9 (currently broken).
Devuan for N950 and N9.

Mobile devices with mainline Linux support - Help needed with documentation.

"Those who do not understand Unix are condemned to reinvent it, poorly." - Henry Spencer
 

The Following 2 Users Say Thank You to wicket For This Useful Post: