Ask your questions here.
Post a reply

Re: [SOLVED] No-go on Mint 17 -- Install saved ISO?

Wed Mar 30, 2016 2:24 pm

ewald used newer versions of live-* packages than the ones in mint-17. (and older than what's in jessie).
I used the version in mint-17, and I had to create my own DEBIAN directory and move files around before repacking it. Command-line instructions are below, but I don't guarantee that what I did is correct. It does install, but I haven't tried running refractasnapshot with it.

bonez, please post your instructions for comparison. I'm assuming you did it differently.

@dzz: interesting idea. If I change live-config to recommends, then I think I should also add a check to see if it's installed and a warning with explanation if it's not installed.


Code:
### Rebuild live-config-sysvinit in mint-17 ###


# Get the live-config-sysvinit deb and copy it to a work directory.

aptitude download live-config-sysvinit
mkdir work
cp live-config-sysvinit_3.0.23-1+deb8u1_all.deb work/


# Go into the work dir and unpack the .deb archive.

cd work
ar x live-config-sysvinit_3.0.23-1+deb8u1_all.deb


# Create a directory to hold the files that will be used to create the new deb,
# and unpack the control and data archives into that directory.

mkdir ive-config-sysvinit_3.0.23-1+deb8u1_mod
cd live-config-sysvinit_3.0.23-1+deb8u1_mod
tar -xvzf ../control.tar.gz
tar -xvJf ../data.tar.xz


# Edit the control file, create a DEBIAN directory and move the files into it.
nano control   # change 'Depends: sysvinit (>=2.86)' to 'Depends: sysvinit-utils (>=2.88)'

mkdir DEBIAN
find . -maxdepth 1 -type f -exec mv {} DEBIAN \;


# The files are now arranged as in the tree output below.
# Move up one directory level and build the deb file.

cd ..
dpkg-deb -b live-config-sysvinit_3.0.23-1+deb8u1_mod/


# Install it. (Run this one as root.)
dpkg -i live-config-sysvinit_3.0.23-1+deb8u1_mod.deb


tree .
.
├── DEBIAN
│   ├── conffiles
│   ├── control
│   ├── md5sums
│   ├── postinst
│   └── postrm
├── etc
│   └── init.d
│       ├── live
│       └── live-config
├── lib
│   └── live
│       └── config
│           ├── 0170-sysvinit
│           └── 0180-sysv-rc
└── usr
    └── share
        └── doc
            └── live-config-sysvinit
                ├── changelog.Debian.gz
                └── copyright

10 directories, 11 files
Post a reply